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