Last active
February 7, 2016 16:54
-
-
Save JeffMatson/70b7870697433b015bb7 to your computer and use it in GitHub Desktop.
Prints the actions fired in WordPress, and how many times
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( 'shutdown', function(){ | |
foreach( $GLOBALS['wp_actions'] as $action => $count ) | |
printf( '%s (%d) <br/>' . PHP_EOL, $action, $count ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment