Retrieves the name of the current filter hook.
Source
function current_filter() {
global $wp_current_filter;
return end( $wp_current_filter );
}
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
Retrieves the name of the current filter hook.
function current_filter() {
global $wp_current_filter;
return end( $wp_current_filter );
}
Version | Description |
---|---|
2.5.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
Get the current filter
Get the current action