WP_Customize_Manager::remove_control( string $id )
Remove a customize control.
Description Description
Parameters Parameters
- $id
-
(string) (Required) ID of the control.
Source Source
File: wp-includes/class-wp-customize-manager.php
public function remove_control( $id ) {
unset( $this->controls[ $id ] );
}
Expand full source code Collapse full source code View on Trac
Changelog Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |
User Contributed Notes 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.
function blogpress_theme_colors_section( $wp_customize ) { $wp_customize->remove_control('background_color'); } add_action( 'customize_register', 'blogpress_theme_colors_section' );