wpseek.com
A WordPress-centric search engine for devs and theme authors



current_filter › WordPress Function

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

Retrieves the name of the current filter hook.



Source

function current_filter() {
	global $wp_current_filter;

	return end( $wp_current_filter );
}