remove_option_update_handler

函数


remove_option_update_handler ( $option_group, $option_name, $sanitize_callback = '' )
参数
  • (string)
    $option_group
    The settings group name used during registration.
    Required:
  • (string)
    $option_name
    The name of the option to unregister.
    Required:
  • (callable)
    $sanitize_callback
    Optional. Deprecated.
    Required:
    Default: (empty)
相关
  • unregister_setting()
定义位置
  • wp-admin/includes/deprecated.php
    , line 188
引入
2.7.0
弃用
3.0.0

取消注册一个设置

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