current_action()WP 3.9.0

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() code WP 6.9.1

function current_action() {
	return current_filter();
}