current_action()
Retrieves the name of the current action hook.
No Hooks.
Returns
String|false. Hook name of the current action, false if no action is running.
Usage
current_action();
Changelog
| Since 3.9.0 | Introduced. |
current_action() current action code WP 6.9.1
function current_action() {
return current_filter();
}