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:
We recommend that you use WordPress's built-in WP-Cron method (Option 1).