current_action()WP 3.9.0

Retrieves the name of the current action hook.

No Hooks.

Return

String. Hook name of the current action.

Usage

current_action();

Changelog

Since 3.9.0 Introduced.

current_action() code WP 6.1.1

function current_action() {
	return current_filter();
}