WP_Customize_Image_Control{}└─ WP_Customize_Upload_Control
Customize Image Control class.
Хуков нет.
Использование
$WP_Customize_Image_Control = new WP_Customize_Image_Control(); // use class methods
Методы
- public prepare_control()
- public add_tab( $id, $label, $callback )
- public remove_tab( $id )
- public print_tab_image( $url, $thumbnail_url = null )
Заметки
- Смотрите: WP_Customize_Upload_Control
Список изменений
| С версии 3.4.0 | Введена. |
Код WP_Customize_Image_Control{} WP Customize Image Control{} WP 7.0
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' );
}
}