WP_Customize_Manager::get_panel() WordPress Method
The WP_Customize_Manager::get_panel() method retrieves a panel by its ID. This is useful for retrieving a panel object in order to modify its properties or call its methods.
WP_Customize_Manager::get_panel( string $id ) #
Retrieves a customize panel.
Contents
Parameters
- $id
(string)(Required)Panel ID to get.
Return
(WP_Customize_Panel|void) Requested panel instance, if set.
Source
File: wp-includes/class-wp-customize-manager.php
public function get_panel( $id ) { if ( isset( $this->panels[ $id ] ) ) { return $this->panels[ $id ]; } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |