Skip to content

Instantly share code, notes, and snippets.

@anoopd
Forked from JeffMatson/get_actions.php
Created February 7, 2016 03:22
Show Gist options
  • Save anoopd/6841a547415a463d03f5 to your computer and use it in GitHub Desktop.
Save anoopd/6841a547415a463d03f5 to your computer and use it in GitHub Desktop.
Prints the actions fired in WordPress, and how many times
<?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