remove_all_actions

函数


remove_all_actions ( $hook_name, $priority = false )
参数
  • (string)
    $hook_name
    The action to remove callbacks from.
    Required:
  • (int|false)
    $priority
    Optional. The priority number to remove them from. Default false.
    Required:
    Default: false
返回值
  • (true) Always returns true.
定义位置
  • wp-includes/plugin.php
    , line 626
引入
2.7.0
弃用

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