WP_Customize_Manager::register_panel_type()publicWP 4.3.0

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

Changelog

Since 4.3.0 Introduced.

WP_Customize_Manager::register_panel_type() code WP 6.5.2

public function register_panel_type( $panel ) {
	$this->registered_panel_types[] = $panel;
}