doing_action()
Retrieve the name of an action currently being processed.
Uses: doing_filter()
1 time — 0.000001 sec (speed of light) | 50000 times — 0.02 sec (speed of light) | PHP 7.2.5, WP 4.9.8
No Hooks.
Return
true|false
. Whether the action is currently in the stack.
Usage
doing_action( $hook_name );
- $hook_name(string|null)
- Action hook to check.
Default: null, which checks if any action is currently being run
Changelog
Since 3.9.0 | Introduced. |
Code of doing_action() doing action WP 6.0.1
function doing_action( $hook_name = null ) { return doing_filter( $hook_name ); }