WP_Customize_Manager::get_section()publicWP 3.4.0

Retrieves a customize section.

Метод класса: WP_Customize_Manager{}

Хуков нет.

Возвращает

WP_Customize_Section|null. The section, if set.

Использование

$WP_Customize_Manager = new WP_Customize_Manager();
$WP_Customize_Manager->get_section( $id );
$id(строка) (обязательный)
Section ID.

Список изменений

С версии 3.4.0 Введена.

Код WP_Customize_Manager::get_section() WP 6.5.2

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