What is WP-Cron
Why use WP-Cron
-
WordPress core and many plugins need a scheduling system to perform time-based tasks. However, many hosting services are shared and do not provide access to the system scheduler. -
Using the WordPress API is a simpler method for setting scheduled tasks than going outside of WordPress to the system scheduler. -
With the system scheduler, if the time passes and the task did not run, it will not be re-attempted. With WP-Cron, all scheduled tasks are put into a queue and will run at the next opportunity (meaning the next page load). So while you can’t be 100% sure when your task will run, you can be 100% sure that it will run eventually .