WP_Customize_Manager::get_section()
Retrieves a customize section.
Method of the class: WP_Customize_Manager{}
No Hooks.
Return
WP_Customize_Section|null
. The section, if set.
Usage
$WP_Customize_Manager = new WP_Customize_Manager(); $WP_Customize_Manager->get_section( $id );
- $id(string) (required)
- Section ID.
Changelog
Since 3.4.0 | Introduced. |
WP_Customize_Manager::get_section() WP Customize Manager::get section code WP 6.7.2
public function get_section( $id ) { if ( isset( $this->sections[ $id ] ) ) { return $this->sections[ $id ]; } }