WordPress at Your Fingertips
function is not described

WP_Customize_Manager::remove_setting() public WP 3.4.0

Remove a customize setting.

Note that removing the setting doesn't destroy the WP_Customize_Setting 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_setting( $id );
$id(string) (required)
Customize Setting ID.


Since 3.4.0 Introduced.

Code of WP_Customize_Manager::remove_setting() WP 5.8.1

public function remove_setting( $id ) {
	unset( $this->settings[ $id ] );