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

remove_option_update_handler() WordPress Function

The remove_option_update_handler() function is used to remove an update handler for an option.

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

Unregister a setting


Description

Top ↑

See also


Top ↑

Parameters

$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)(Optional) Deprecated.

Default value: ''


Top ↑

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


Top ↑

Changelog

Changelog
VersionDescription
3.0.0Use unregister_setting()
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More