function current_filter() { if (is_callable('current_filter')) { return current_filter(); } global $wp_actions; return end($wp_actions); }