I’m trying to debug a plugin which I didn’t develop and I want to list all the registered actions. I’ve read this SO thread:
But it’s specific to one hook and it’s about filters, not actions.
Is there any variable like $wp_filter
or something?
I’m trying to debug a plugin which I didn’t develop and I want to list all the registered actions. I’ve read this SO thread:
But it’s specific to one hook and it’s about filters, not actions.
Is there any variable like $wp_filter
or something?
Comments are closed.
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 toprint_r
it.PS.
add_action
function makes aadd_filter
call. And the latter does$wp_filter[$tag][$priority][$idx]
.NOTE: you can directly add this code in functions.php, and you will see a debug on your site: