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

---

# WP_Customize_Manager::remove_setting( string $id )

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/wp_customize_manager/remove_setting/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/classes/wp_customize_manager/remove_setting/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/classes/wp_customize_manager/remove_setting/?output_format=md#source)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_customize_manager/remove_setting/?output_format=md#changelog)

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

Removes a customize setting.

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

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

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

 `$id`stringrequired

Customize Setting ID.

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

    ```php
    public function remove_setting( $id ) {
    	unset( $this->settings[ $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#L3883)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/class-wp-customize-manager.php#L3883-L3885)

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

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

## User Contributed Notes

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