WP_Customize_Media_Control::__construct()
Constructor.
Метод класса: WP_Customize_Media_Control{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WP_Customize_Media_Control = new WP_Customize_Media_Control(); $WP_Customize_Media_Control->__construct( $manager, $id, $args );
- $manager(WP_Customize_Manager) (обязательный)
- Customizer bootstrap instance.
- $id(строка) (обязательный)
- Control ID.
- $args(массив)
- Arguments to override class property defaults. See WP_Customize_Control::__construct() for information on accepted arguments.
По умолчанию: empty array
Заметки
- Смотрите: WP_Customize_Control::__construct()
Список изменений
С версии 4.1.0 | Введена. |
С версии 4.2.0 | Moved from WP_Customize_Upload_Control. |
Код WP_Customize_Media_Control::__construct() WP Customize Media Control:: construct WP 6.5.2
public function __construct( $manager, $id, $args = array() ) { parent::__construct( $manager, $id, $args ); $this->button_labels = wp_parse_args( $this->button_labels, $this->get_default_button_labels() ); }