remove_option_update_handler

Advertisement

Deprecated Deprecated

This function has been deprecated. Use unregister_setting() instead.

Summery Summery

Unregister a setting

Syntax Syntax

remove_option_update_handler( string $option_group, string $option_name, callable $sanitize_callback = '' )

Parameters Parameters

$option_group

(string) (Required)

$option_name

(string) (Required)

$sanitize_callback

(callable) (Optional)

Default value: ''

Source Source

File: wp-admin/includes/deprecated.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 );
}

Advertisement

Changelog Changelog

Changelog
Version Description
3.0.0 Use unregister_setting()
2.7.0 Introduced.

See also See also

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.