WP_Customize_Manager::get_section( string $id ): WP_Customize_Section|null
- Since
- 3.4.0
- Source
wp-includes/class-wp-customize-manager.php:4022
Retrieves a customize section.
Parameters
$idstring- Section ID.
Return
WP_Customize_Section|null- The section, if set.
Source
public function get_section( $id ) { if ( isset( $this->sections[ $id ] ) ) { return $this->sections[ $id ]; } }History
Introduced in 3.4.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
7.0.4
Return type changed from
WP_Customize_Section|void to WP_Customize_Section|null.verified against source3.4.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, from
src/wp-includes/class-wp-customize-manager.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.