remove_all_actions()
最后更新于:2021-11-27 21:40:34
remove_all_actions( string$hook_name, int|false$priority=false)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 value: false
响应
(true) Always returns true.
源文件
文件: gc-includes/plugin.php
function remove_all_actions( $hook_name, $priority = false ) {
return remove_all_filters( $hook_name, $priority );
}