Created
July 18, 2012 17:48
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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