remove_all_actions()

从动作中移除所有钩子。

remove_all_actions( string $tag , int|bool $priority = false )

参数(Parameters)

参数类型必填说明
$tag(string)必需从中移除挂钩的操作。
$priority(int | bool)可选要从中删除它们的优先级号。

返回(Return)

(true)完成后是真的。


源码(Source)

/**
 * Remove all of the hooks from an action.
 *
 * @since 2.7.0
 *
 * @param string   $tag      The action to remove hooks from.
 * @param int|bool $priority The priority number to remove them from. Default false.
 * @return true True when finished.
 */
function remove_all_actions($tag, $priority = false) {
	return remove_all_filters($tag, $priority);
}
//
// Functions for handling plugins.
//
更新版本源码位置使用被使用
2.7.0wp-includes/plugin.php:59601 function
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索