doing_action ( $hook_name = null )
- (string|null) hook_name Optional. Action hook to check. Defaults to null, which checks if any action is currently being run.
- (bool) Whether the action is currently in the stack.
- Introduced in WordPress: 3.9.0
- Deprecated in WordPress: —
Returns whether or not an action hook is currently being processed.