Created
January 2, 2015 18:11
-
-
Save vimes1984/81d15d82a1749b508e59 to your computer and use it in GitHub Desktop.
Simple function to print from the filter array
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
function print_filters_for( $hook = '' ) { | |
global $wp_filter; | |
if( empty( $hook ) || !isset( $wp_filter[$hook] ) ) | |
return; | |
print '<pre>'; | |
print_r( $wp_filter[$hook] ); | |
print '</pre>'; | |
} | |
//Call it where you need it. | |
print_filters_for( 'the_content' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment