WP_Customize_Manager::remove_control()publicWP 3.4.0

Removes a customize control.

Note that removing the control doesn't destroy the WP_Customize_Control 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_control( $id );
$id(string) (required)
ID of the control.

Changelog

Since 3.4.0 Introduced.

WP_Customize_Manager::remove_control() code WP 6.5.2

public function remove_control( $id ) {
	unset( $this->controls[ $id ] );
}