WP_Customize_Manager::register_panel_type() – Register a customize panel type.

You appear to be a bot. Output may be restricted

Description

Registers a customize panel type.

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

Usage

WP_Customize_Manager::register_panel_type( $panel );

Parameters

$panel
( string ) required – Name of a custom panel which is a subclass of WP_Customize_Panel.

Returns

void

Source

File name: wordpress/wp-includes/class-wp-customize-manager.php
Lines:

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

 View on GitHub View on Trac