WP_Customize_Manager::get_panel()
Retrieves a customize panel.
Method of the class: WP_Customize_Manager{}
No Hooks.
Return
WP_Customize_Panel|null
. Requested panel instance, if set.
Usage
$WP_Customize_Manager = new WP_Customize_Manager(); $WP_Customize_Manager->get_panel( $id );
- $id(string) (required)
- Panel ID to get.
Changelog
Since 4.0.0 | Introduced. |
WP_Customize_Manager::get_panel() WP Customize Manager::get panel code WP 6.5.2
public function get_panel( $id ) { if ( isset( $this->panels[ $id ] ) ) { return $this->panels[ $id ]; } }