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

---

# remove_option_update_handler( string $option_group, string $option_name, callable $sanitize_callback )

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/remove_option_update_handler/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/functions/remove_option_update_handler/?output_format=md#see-also)
 * [Parameters](https://developer.wordpress.org/reference/functions/remove_option_update_handler/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/functions/remove_option_update_handler/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/remove_option_update_handler/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/remove_option_update_handler/?output_format=md#changelog)

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

This function has been deprecated since 3.0.0. Use [unregister_setting()](https://developer.wordpress.org/reference/functions/unregister_setting/)
instead.

Unregister a setting

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

### 󠀁[See also](https://developer.wordpress.org/reference/functions/remove_option_update_handler/?output_format=md#see-also)󠁿

 * [unregister_setting()](https://developer.wordpress.org/reference/functions/unregister_setting/)

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

 `$option_group`stringrequired

The settings group name used during registration.

`$option_name`stringrequired

The name of the option to unregister.

`$sanitize_callback`callableoptional

Deprecated.

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

    ```php
    function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) {
    	_deprecated_function( __FUNCTION__, '3.0.0', 'unregister_setting()' );
    	unregister_setting( $option_group, $option_name, $sanitize_callback );
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/deprecated.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-admin/includes/deprecated.php#L188)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-admin/includes/deprecated.php#L188-L191)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/remove_option_update_handler/?output_format=md#related)󠁿

| Uses | Description | 
| [unregister_setting()](https://developer.wordpress.org/reference/functions/unregister_setting/)`wp-includes/option.php` |

Unregisters a setting.

  | 
| [_deprecated_function()](https://developer.wordpress.org/reference/functions/_deprecated_function/)`wp-includes/functions.php` |

Marks a function as deprecated and inform when it has been used.

  |

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

| Version | Description | 
| [3.0.0](https://developer.wordpress.org/reference/since/3.0.0/) | Deprecated. Use [unregister_setting()](https://developer.wordpress.org/reference/functions/unregister_setting/)  | 
| [2.7.0](https://developer.wordpress.org/reference/since/2.7.0/) | Introduced. |

## User Contributed Notes

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