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



doing_action ›

Since3.9.0
已弃用n/a
doing_action ( $action = null )
参数:
  • (string|null) $action Optional. Action to check. Defaults to null, which checks if any action is currently being run.
    Required: No
    默认: null
返回:
  • (bool) Whether the action is currently in the stack.
定义在:
文档:

Retrieve the name of an action currently being processed.



源码

function doing_action( $action = null ) {
	return doing_filter( $action );
}