Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

i'm trying to debug a plugin which i didn't create and i want to list all registered actions. i read this http://stackoverflow.com/questions/5224209/wordpress-how-do-i-get-all-the-registered-functions-for-the-content-filter but it's specific to one hook and it's about filters, not actions. Is there any variable like $wp_filter or something?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Filters and actions are both assigned to hooks. Functions assigned to hooks are stored in global $wp_filter variable. So all you have to do is to print_r it.

global $wp_filter;

PS. add_action function makes a add_filter call. And the latter does $wp_filter[$tag][$priority][$idx].

share|improve this answer
nice, but where can i debug them? i tried to add if(WP_DEBUG == true){ global $wp_filter; print_r($wp_filter); } in index.php nad i got NULL –  Jacer Omri Jul 2 '13 at 14:57
my bad, shouldn't write global $wp_filter; –  Jacer Omri Jul 2 '13 at 15:03
OK, so you worked that out? –  Krzysiek Dróżdż Jul 2 '13 at 15:12
yes, thank you :) –  Jacer Omri Jul 2 '13 at 15:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.