current_filter() – Retrieves the name of the current filter hook.

You appear to be a bot. Output may be restricted

Description

Retrieves the name of the current filter hook.

Usage

$string = current_filter();

Parameters

Returns

string Hook name of the current filter.

Source

File name: wordpress/wp-includes/plugin.php
Lines:

1 to 5 of 5
function current_filter() {
  global $wp_current_filter;

  return end( $wp_current_filter );
}
 

 View on GitHub View on Trac