Skip to content

Instantly share code, notes, and snippets.

@stephenfeather
Last active April 30, 2023 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephenfeather/536ea07fe808a1c154ca32473ff2cc25 to your computer and use it in GitHub Desktop.
Save stephenfeather/536ea07fe808a1c154ca32473ff2cc25 to your computer and use it in GitHub Desktop.
Wordpress function and action to list all hooks/action in sequence of excecution
# Courtesy of Prosti (https://wordpress.stackexchange.com/users/88606/prosti)
# Context (https://wordpress.stackexchange.com/a/250293/215668)
function _20161224_printer( $r ){
$line = microtime(true)*10000 . ' ' . $r . "\n";
$fp = fopen( ABSPATH . 'hooks.txt', 'a+');
fwrite($fp, $line);
fclose($fp);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment