Created
April 28, 2021 03:48
-
-
Save doubleedesign/96c7d0c9a025fe58d8dd655c80e1f833 to your computer and use it in GitHub Desktop.
Log all WordPress hooks that run
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 | |
function doublee_log_all_actions() { | |
foreach($GLOBALS['wp_actions'] as $action => $count) { | |
error_log(print_r($action, true)); | |
} | |
} | |
add_action('shutdown', 'doublee_log_all_actions'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment