WP_Customize_Manager::remove_section()publicWP 3.4.0

Removes a customize section.

Note that removing the section doesn't destroy the WP_Customize_Section instance or remove its filters.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

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

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

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

Код WP_Customize_Manager::remove_section() WP 6.5.2

public function remove_section( $id ) {
	unset( $this->sections[ $id ] );
}