current_action(): string|false

In this article

Retrieves the name of the current action hook.

Return

string|false Hook name of the current action, false if no action is running.

Source

function current_action() {
	return current_filter();
}

Changelog

VersionDescription
3.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.