remove_option_update_handler()
Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. Use unregister_setting() instead.
Unregister a setting
No Hooks.
Return
null
. Nothing (null).
Usage
remove_option_update_handler( $option_group, $option_name, $sanitize_callback );
- $option_group(string) (required)
- The settings group name used during registration.
- $option_name(string) (required)
- The name of the option to unregister.
- $sanitize_callback(callable)
- Deprecated.
Default: ''
Notes
- See: unregister_setting()
Changelog
Since 2.7.0 | Introduced. |
Deprecated since 3.0.0 | Use unregister_setting() |
remove_option_update_handler() remove option update handler code WP 6.6.2
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 ); }