Last active
April 30, 2023 11:45
-
-
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
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
# 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