WP_Customize_Image_Control
Customize Image Control class.
Description
See also
Source
File: wp-includes/customize/class-wp-customize-image-control.php
class WP_Customize_Image_Control extends WP_Customize_Upload_Control { /** * Control type. * * @since 3.4.0 * @var string */ public $type = 'image'; /** * Media control mime type. * * @since 4.1.0 * @var string */ public $mime_type = 'image'; /** * @since 3.4.2 * @deprecated 4.1.0 */ public function prepare_control() {} /** * @since 3.4.0 * @deprecated 4.1.0 * * @param string $id * @param string $label * @param mixed $callback */ public function add_tab( $id, $label, $callback ) { _deprecated_function( __METHOD__, '4.1.0' ); } /** * @since 3.4.0 * @deprecated 4.1.0 * * @param string $id */ public function remove_tab( $id ) { _deprecated_function( __METHOD__, '4.1.0' ); } /** * @since 3.4.0 * @deprecated 4.1.0 * * @param string $url * @param string $thumbnail_url */ public function print_tab_image( $url, $thumbnail_url = null ) { _deprecated_function( __METHOD__, '4.1.0' ); } }
Expand full source code Collapse full source code View on Trac View on GitHub
Methods
- add_tab — deprecated
- prepare_control — deprecated
- print_tab_image — deprecated
- remove_tab — deprecated
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Note that this control stores the URL of the image. If you want to store the ID of the image’s attachment then use WP_Customize_Media_Control.
This class is used with the Theme Customization API to render the custom image control on the Theme Customizer in WordPress 3.4 or newer.
Callback function
Expand full source codeCollapse full source code