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.

Method of the class: WP_Customize_Manager{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Customize_Manager = new WP_Customize_Manager();
$WP_Customize_Manager->remove_section( $id );
$id(string) (required)
Section ID.

Changelog

Since 3.4.0 Introduced.

WP_Customize_Manager::remove_section() code WP 6.4.3

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