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_groupstringrequired
The settings group name used during registration.
$option_namestringrequired
The name of the option to unregister.
$sanitize_callbackcallableoptional
Deprecated.

Default:''

Source

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 );
}

Changelog

VersionDescription
3.0.0Use unregister_setting()
2.7.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.