wpseek.com
A WordPress-centric search engine for devs and theme authors



doing_action › WordPress Function

Since3.9.0
Deprecatedn/a
doing_action ( $hook_name = null )
Parameters:
  • (string|null) $hook_name Optional. Action hook to check. Defaults to null, which checks if any action is currently being run.
    Required: No
    Default: null
Returns:
  • (bool) Whether the action is currently in the stack.
Defined at:
Codex:

Returns whether or not an action hook is currently being processed.



Source

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