Last active
May 18, 2024 01:03
-
-
Save szepeviktor/6ac0cc9c2f0c492249b8d14012f5078c to your computer and use it in GitHub Desktop.
List missing WordPress Cron hook names
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 | |
array_map( | |
function ($cron) { | |
$hook = array_key_first($cron); | |
if (!has_action($hook)) { | |
echo $hook, "\n"; | |
} | |
}, | |
_get_cron_array() | |
); |
Author
szepeviktor
commented
May 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment