WP_Customize_Manager::register_panel_type() WordPress Method

The register_panel_type() method allows you to register a new panel type for the Customizer. This is useful if you want to create a new panel type that is not included in the default set of panel types.

WP_Customize_Manager::register_panel_type( string $panel ) #

Registers a customize panel type.


Description

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

Top ↑

See also


Top ↑

Parameters

$panel

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


Top ↑

Source

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

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


Top ↑

Changelog

Changelog
VersionDescription
4.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More