Cron jobs run commands or scripts on a schedule — ideal for WordPress cron replacements, report generation, and maintenance tasks.
Add a cron job
- Go to Advanced → Cron Jobs.
- Choose Standard or Advanced scheduling.
- Set the minute, hour, day, month, and weekday fields (or use a common preset such as once per hour).
- Enter the command — for example
php /home/username/public_html/wp-cron.php. - Click Add New Cron Job.
Command examples
- PHP script:
/usr/local/bin/php /home/username/path/to/script.php - URL fetch:
curl -s https://yourdomain.com/cron.php
Use the full path to PHP shown in cPanel. Test commands manually in SSH or Terminal before scheduling. Avoid running intensive jobs too frequently.