How to use wp cron job to run a function

First of all you have to remember how WP cron works. The action will trigger when someone visits your WordPress site, if the scheduled time has passed. So if your site isn’t very crowded at 3am, the cron job won’t start exactly at 3am. (You should use real cron if you really need to run … Read more

WordPress Cron Job in Bookly Plugin [closed]

You should set up a cron job on the server to do what the plugin authors are asking you to do: execute the php command they’ve given you. Just make sure you’re not setting up WordPress’s wp_cron(), since this one is not a real cron job. From this article: When it comes to WordPress, you … Read more

Cron and WP Super Cache in Preload Mode

Will they wait until the next hit to wp-cron.php (+8 hours)? Yes. That’s why it’s important to keep this duration shorter. I usually keep it to every 5 minutes. PS: I know it’s an old question. But, wanted to answer it anyway, if someone else has the same question in the future.