current_action(): string

In this article

Retrieves the name of the current action hook.

Return

string Hook name of the current action.

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.