WP_Customize_Image_Control

Customize Image Control class.

Defined (1)

The class is defined in the following location(s).

/wp-includes/customize/class-wp-customize-image-control.php  
  1. class WP_Customize_Image_Control extends WP_Customize_Upload_Control { 
  2. public $type = 'image'; 
  3. public $mime_type = 'image'; 
  4.  
  5. /** 
  6. * Constructor. 
  7. * @since 3.4.0 
  8. * @uses WP_Customize_Upload_Control::__construct() 
  9. * @param WP_Customize_Manager $manager Customizer bootstrap instance. 
  10. * @param string $id Control ID. 
  11. * @param array $args Optional. Arguments to override class property defaults. 
  12. */ 
  13. public function __construct( $manager, $id, $args = array() ) { 
  14. parent::__construct( $manager, $id, $args ); 
  15.  
  16. $this->button_labels = wp_parse_args( $this->button_labels, array( 
  17. 'select' => __( 'Select Image' ),  
  18. 'change' => __( 'Change Image' ),  
  19. 'remove' => __( 'Remove' ),  
  20. 'default' => __( 'Default' ),  
  21. 'placeholder' => __( 'No image selected' ),  
  22. 'frame_title' => __( 'Select Image' ),  
  23. 'frame_button' => __( 'Choose Image' ),  
  24. ) ); 
  25.  
  26. /** 
  27. * @since 3.4.2 
  28. * @deprecated 4.1.0 
  29. */ 
  30. public function prepare_control() {} 
  31.  
  32. /** 
  33. * @since 3.4.0 
  34. * @deprecated 4.1.0 
  35. * @param string $id 
  36. * @param string $label 
  37. * @param mixed $callback 
  38. */ 
  39. public function add_tab( $id, $label, $callback ) {} 
  40.  
  41. /** 
  42. * @since 3.4.0 
  43. * @deprecated 4.1.0 
  44. * @param string $id 
  45. */ 
  46. public function remove_tab( $id ) {} 
  47.  
  48. /** 
  49. * @since 3.4.0 
  50. * @deprecated 4.1.0 
  51. * @param string $url 
  52. * @param string $thumbnail_url 
  53. */ 
  54. public function print_tab_image( $url, $thumbnail_url = null ) {}