WP_Customize_Manager::remove_control( string $id )
Removes 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
.
View all references
public function remove_control( $id ) {
unset( $this->controls[ $id ] );
}
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
To remove ‘background_color’ control from theme colors in customizer.
custom_logo for the logo