Created
August 20, 2018 03:52
-
-
Save codehaiku/24ab43f2278ec68453d4e40a71258b20 to your computer and use it in GitHub Desktop.
WordPress Show All Hooks
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 | |
add_action( 'all', function ( $tag ) { | |
global $debug_tags; | |
if ( in_array( $tag, $debug_tags ) ) { | |
return; | |
} | |
echo $tag; | |
$debug_tags[] = $tag; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Props @https://www.barrykooij.com/display-hooks-run-page/