doing_action()
最后更新于:2021-11-26 02:36:19
doing_action( string|null$hook_name=null)响应s whether or not an action hook is currently being processed.
参数
- $hook_name
-
(string|null) (Optional) Action hook to check. Defaults to null, which checks if any action is currently being run.
Default value: null
响应
(bool) Whether the action is currently in the stack.
源文件
文件: gc-includes/plugin.php
function doing_action( $hook_name = null ) {
return doing_filter( $hook_name );
}