Created
August 17, 2016 17:49
-
-
Save afuggetta/82c338c288f1bf67bf00aef37d725146 to your computer and use it in GitHub Desktop.
WordPress list all actions
This file contains hidden or 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