Skip to content

Instantly share code, notes, and snippets.

@gfazioli
Created June 20, 2013 09:45
Show Gist options
  • Save gfazioli/5821543 to your computer and use it in GitHub Desktop.
Save gfazioli/5821543 to your computer and use it in GitHub Desktop.
Print action or filters in WordPress
<?php
// Put on top in do_action() and apply_filters()
if( !isset( $GLOBALS['abcdefg'][$tag] ) ) {
$GLOBALS['abcdefg'][$tag] = true;
?><pre><?php printf( '-> %s', $tag ) ?></pre><?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment