remove_option_update_handler() - WordPress 函数参考中文文档

返回介绍

remove_option_update_handler()

发布于 2017-09-11 字数1513 浏览 856 评论 0

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

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

Unregister a setting


描述


参数

$option_group

(string)
(Required)

$option_name

(string)
(Required)

$sanitize_callback

(callable)
(Optional)

Default value: ”


源代码

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

更新日志

Version 描述
3.0.0 Use unregister_setting()
2.7.0 Introduced.

相关函数

Uses

  • wp-includes/option.php:
    unregister_setting()
  • wp-includes/functions.php:
    _deprecated_function()

User Contributed Notes

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!