函数原型
remove_all_actions( string $hook_name, int|false $priority = false ): true
函数描述
Removes all of the callback functions from an action hook.
是否弃用
未弃用
函数参数
-
$hook_name
string
Required - The action to remove callbacks from.
-
$priority
int|false
Optional - The priority number to remove them from.
Default:
false
函数返回值
true Always returns true.
函数位置
File: wp-includes/plugin.php.
函数源码
function remove_all_actions( $hook_name, $priority = false ) {
return remove_all_filters( $hook_name, $priority );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |

