wpseek.com
WordPress开发者和主题制作者的搜索引擎



remove_all_actions › WordPress Function

Since2.7.0
已弃用n/a
remove_all_actions ( $hook_name, $priority = false )
参数: (2)
  • (string) $hook_name The action to remove callbacks from.
    Required: Yes
  • (int|false) $priority Optional. The priority number to remove them from. Default false.
    Required: No
    默认: false
返回:
  • (true) Always returns true.
定义在:
文档:

Removes all of the callback functions from an action hook.



源码

function remove_all_actions( $hook_name, $priority = false ) {
	return remove_all_filters( $hook_name, $priority );
}