Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Log all WordPress hooks that run
<?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