WordPress at a glance
function is not described

WP_Customize_Manager::remove_section() public WP 3.4.0

Remove a customize section.

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

{} It's a method of the class: WP_Customize_Manager{}

No Hooks.


null. Nothing.


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


Since 3.4.0 Introduced.

Code of WP_Customize_Manager::remove_section() WP 5.7.2

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