Created
January 29, 2014 08:13
-
-
Save miziomon/8683732 to your computer and use it in GitHub Desktop.
Get WordPress filters attach to specific hook
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
/** | |
* get filters attach to specific hook | |
* eg. the_filters("the_title"); | |
*/ | |
function the_filters($hook = '') { | |
global $wp_filter; | |
if (empty($hook) || !isset($wp_filter[$hook])) | |
return; | |
echo '<pre>'; | |
print_r( $wp_filter[$hook] ); | |
echo '</pre>'; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment