Retrieve the name of the current filter or action.

Signature

current_filter()

Return

(string) Hook name of the current filter or action.

Source

function current_filter() {
	global $wp_current_filter;
	return end( $wp_current_filter );
}
WP Trac GitHub

Link here