A WordPress-centric search engine for devs and theme authors



current_filter ›

Since2.5.0
Deprecatedn/a
current_filter ( No parameters )
Returns:
  • (string) Hook name of the current filter or action.
Defined at:
Codex:

Retrieve the name of the current filter or action.



Source

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