scarstens
7/18/2012 - 5:48 PM

WordPress - Display Filters in Footer (to debug adding and removing of actions and filters)

WordPress - Display Filters in Footer (to debug adding and removing of actions and filters)

<?php
add_action('wp_footer', 'print_the_filters', 30);

function print_the_filters() {
	$hook_name = 'wp_enqueue_scripts';
	global $wp_filter;
	var_dump( $wp_filter[$hook_name] );
}