On this page
remove_option_update_handler( string $option_group, string $option_name, callable $sanitize_callback = '' )
This function has been deprecated. Use unregister_setting() instead.
Unregister a setting
Description
See also
Parameters
$option_groupstring Required-
The settings group name used during registration.
$option_namestring Required-
The name of the option to unregister.
$sanitize_callbackcallable Optional-
Deprecated.
Default:
''
Source
File: wp-admin/includes/deprecated.php. View all references
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 );
}
Related
Uses
| Uses | Description |
|---|---|
| unregister_setting() wp-includes/option.php | Unregisters a setting. |
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Use unregister_setting() |
| 2.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/remove_option_update_handler