Skip to content

Instantly share code, notes, and snippets.

@scarstens
Created July 18, 2012 17:48
Show Gist options
  • Save scarstens/3137712 to your computer and use it in GitHub Desktop.
Save scarstens/3137712 to your computer and use it in GitHub Desktop.
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] );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment