Skip to content

Instantly share code, notes, and snippets.

@miziomon
Created January 29, 2014 08:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miziomon/8683732 to your computer and use it in GitHub Desktop.
Save miziomon/8683732 to your computer and use it in GitHub Desktop.
Get WordPress filters attach to specific hook
/**
* 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