Title: WP_Customize_Manager::remove_control
Published: April 25, 2014
Last modified: February 24, 2026

---

# WP_Customize_Manager::remove_control( string $id )

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/wp_customize_manager/remove_control/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/classes/wp_customize_manager/remove_control/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/classes/wp_customize_manager/remove_control/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_customize_manager/remove_control/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/classes/wp_customize_manager/remove_control/?output_format=md#user-contributed-notes)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_customize_manager/remove_control/?output_format=md#wp--skip-link--target)

Removes a customize control.

## 󠀁[Description](https://developer.wordpress.org/reference/classes/wp_customize_manager/remove_control/?output_format=md#description)󠁿

Note that removing the control doesn’t destroy the [WP_Customize_Control](https://developer.wordpress.org/reference/classes/wp_customize_control/)
instance or remove its filters.

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/wp_customize_manager/remove_control/?output_format=md#parameters)󠁿

 `$id`stringrequired

ID of the control.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_customize_manager/remove_control/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-customize-manager.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/class-wp-customize-manager.php#L4110)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-customize-manager.php#L4110-L4112)

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_customize_manager/remove_control/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.4.0](https://developer.wordpress.org/reference/since/3.4.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/classes/wp_customize_manager/remove_control/?output_format=md#user-contributed-notes)󠁿

 1.   [Skip to note 3 content](https://developer.wordpress.org/reference/classes/wp_customize_manager/remove_control/?output_format=md#comment-content-2734)
 2.    [Aamer Shahzad](https://profiles.wordpress.org/talentedaamer/)  [  8 years ago  ](https://developer.wordpress.org/reference/classes/wp_customize_manager/remove_control/#comment-2734)
 3.  [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_customize_manager%2Fremove_control%2F%23comment-2734)
     Vote results for this note: 2[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_customize_manager%2Fremove_control%2F%23comment-2734)
 4.  To remove ‘background_color’ control from theme colors in customizer.
 5.      ```php
         function blogpress_theme_colors_section( $wp_customize ) {
         	$wp_customize->remove_control('background_color');
         }
         add_action( 'customize_register', 'blogpress_theme_colors_section' );
         ```
     
 6.   [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_customize_manager%2Fremove_control%2F%3Freplytocom%3D2734%23feedback-editor-2734)
 7.   [Skip to note 4 content](https://developer.wordpress.org/reference/classes/wp_customize_manager/remove_control/?output_format=md#comment-content-3739)
 8.    [WebMat](https://profiles.wordpress.org/webmatpro/)  [  6 years ago  ](https://developer.wordpress.org/reference/classes/wp_customize_manager/remove_control/#comment-3739)
 9.  [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_customize_manager%2Fremove_control%2F%23comment-3739)
     Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_customize_manager%2Fremove_control%2F%23comment-3739)
 10. custom_logo for the logo
 11.     ```php
         if ( ! function_exists( 'custom_customize_register' ) ) {
         	/**
         	 * Register basic customizer support.
         	 *
         	 * @param object $wp_customize Customizer reference.
         	 */
         	function custom_customize_register( $wp_customize ) {
         		$wp_customize->remove_control("custom_logo");
         	}
         }
         add_action( 'customize_register', 'custom_customize_register' );
         ```
     
 12.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_customize_manager%2Fremove_control%2F%3Freplytocom%3D3739%23feedback-editor-3739)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_customize_manager%2Fremove_control%2F)
before being able to contribute a note or feedback.