Does anyone have a visual breakdown of core hooks and when they are fired?

The Action Reference in Codex has a roughly chronological list of actions called during both front-end and admin requests, though it’s nothing fancier than a simple list.

Filters are a bit trickier, as they primarily handle output, so it’s going to be specific to what theme and plugins you’ve got and what they’re doing during different kinds of requests.

You can log when all actions and filters are invoked without editing core with the all action:

function wpd_log_all_filters(){
    var_dump( current_filter() );
}
add_action( 'all', 'wpd_log_all_filters' );

This will fire for both actions and filters, actions are a simple kind of filter under the hood.

Leave a Comment