Can my “add_action” function know the name of the hook calling it?

function pj_time () {
    echo current_filter();
}

Easier than I thought 😉

http://codex.wordpress.org/Function_Reference/current_filter

Leave a Comment