doing_action
doing_action ( $action = null )
Parameters:- (string|null) action Optional. Action to check. Defaults to null, which checks if any action is currently being run.
Returns:- (bool) Whether the action is currently in the stack.
Defined at: - Introduced in WordPress: 3.9.0
- Deprecated in WordPress: —
Description
Retrieve the name of an action currently being processed.