WP_Customize_Manager::get_panel( string $id )
Retrieve a customize panel.
Parameters
- $id
-
(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 ];
}
}
Changelog
Version | Description |
---|---|
WP-4.0.0 | Introduced. |