取消注册设置

原型

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

参数

$option_group (string) (Required)

$option_name (string) (Required)

$sanitize_callback (callable) (Optional)

源文件

路径:wp-admin/includes/deprecated.php

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

其他

英文文档:https://developer.wordpress.org/reference/functions/remove_option_update_handler/