We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've found no way in core to look up when WordPress Cron ran the last time.
<?php add_filter( 'pre_set_transient_doing_cron', static function ($value) { update_option('cron_last_run', $value, 'no'); return $value; }, 0, 1 );
This MU plugin records the time of last run in an option called cron_last_run.
cron_last_run
Then it can be compared to current time: wp option get cron_last_run
wp option get cron_last_run
(I use Linux cron jobs to run WordPress Cron)
The text was updated successfully, but these errors were encountered:
Thanks! Closing in favour of #19 which I'll get to... one day...
Sorry, something went wrong.
No branches or pull requests
I've found no way in core to look up when WordPress Cron ran the last time.
This MU plugin records the time of last run in an option called
cron_last_run
.Then it can be compared to current time:
wp option get cron_last_run
(I use Linux cron jobs to run WordPress Cron)
The text was updated successfully, but these errors were encountered: