How do I Define Regular (Cron) Tasks?
There are two methods available for various batch runs:
1. WordPress’s built-in WP-Cron, which is used to register runs with the wp_schedule_event function.
2. The traditional Linux cron, which can be configured with a SSH connection with the command
crontab -e;If you would like to determine the address to which the cron prints are sent, insert the following text on the first row in crontab:
MAILTOfirstname.lastname@example.org. This email feature should not be used for long term debugging, if cron is running with a short interval.
We recommend that you use WordPress's built-in WP-Cron method (Option 1).