W3cubDocs

/WordPress

WP_Customize_Manager::remove_control( string $id )

Remove a customize control.

Description

Note that removing the control doesn’t destroy the WP_Customize_Control instance or remove its filters.

Parameters

$id

(string) (Required) ID of the control.

Source

File: wp-includes/class-wp-customize-manager.php

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

Changelog

Version Description
3.4.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_manager/remove_control