W3cubDocs

/WordPress

WP_Customize_Manager::register_panel_type( string $panel )

Register a customize panel type.

Description

Registered types are eligible to be rendered via JS and created dynamically.

See also

Parameters

$panel

(string) (Required) Name of a custom panel which is a subclass of WP_Customize_Panel.

Source

File: wp-includes/class-wp-customize-manager.php

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

Changelog

Version Description
4.3.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_manager/register_panel_type