Core Function
View Source on Trac ↗ doing_action()
doing_action( mixed $hook_name = null ) Returns whether or not an action hook is currently being processed.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (string | null) $hook_name Optional. Action hook to check. Defaults to null, which checks if any action is currently being run. Required |
Return Value
(bool)
Whether the action is currently in the stack.
Function Information
Since Version
3.9.0
Source File
wp-includes/plugin.php
Advertisement