WP_Customize_Manager::get_section()publicWP 3.4.0

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() code WP 6.5.2

public function get_section( $id ) {
	if ( isset( $this->sections[ $id ] ) ) {
		return $this->sections[ $id ];
	}
}