WP_Customize_Manager::get_section() WordPress Method
The WP_Customize_Manager::get_section() function is used to get a specific Customizer section. This function accepts a section ID (string) as its only parameter. The section ID is used to uniquely identify the section.
WP_Customize_Manager::get_section( string $id ) #
Retrieves a customize section.
Contents
Parameters
- $id
(string)(Required)Section ID.
Return
(WP_Customize_Section|void) The section, if set.
Source
File: wp-includes/class-wp-customize-manager.php
public function get_section( $id ) {
if ( isset( $this->sections[ $id ] ) ) {
return $this->sections[ $id ];
}
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |