WP_Customize_Manager::register_panel_type()
Registers a customize panel type.
Registered types are eligible to be rendered via JS and created dynamically.
Method of the class: WP_Customize_Manager{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WP_Customize_Manager = new WP_Customize_Manager(); $WP_Customize_Manager->register_panel_type( $panel );
- $panel(string) (required)
- Name of a custom panel which is a subclass of WP_Customize_Panel.
Notes
- See: WP_Customize_Panel
Changelog
Since 4.3.0 | Introduced. |
WP_Customize_Manager::register_panel_type() WP Customize Manager::register panel type code WP 6.5.2
public function register_panel_type( $panel ) { $this->registered_panel_types[] = $panel; }