WP_Customize_Manager::register_control_type()
Registers a customize control type.
Registered types are eligible to be rendered via JS and created dynamically.
Метод класса: WP_Customize_Manager{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$WP_Customize_Manager = new WP_Customize_Manager(); $WP_Customize_Manager->register_control_type( $control );
- $control(строка) (обязательный)
- Name of a custom control which is a subclass of WP_Customize_Control.
Список изменений
С версии 4.1.0 | Введена. |
Код WP_Customize_Manager::register_control_type() WP Customize Manager::register control type WP 6.2
public function register_control_type( $control ) { $this->registered_control_types[] = $control; }