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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)