Last active
January 12, 2017 06:10
-
-
Save sourovroy/9c8febdd6e12cd156bb604e0ece7706f to your computer and use it in GitHub Desktop.
Show all hook of wordpress
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 | |
$debug_tags = array(); | |
add_action( 'all', function ( $tag ) { | |
global $debug_tags; | |
if ( in_array( $tag, $debug_tags ) ) { | |
return; | |
} | |
echo "<pre>" . $tag . "</pre>"; | |
$debug_tags[] = $tag; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment