How to Set Up Custom Cron Jobs for WordPress in cPanel
Posted about 4 months ago 4.8kWhy Replace WP-Cron
Default WP-Cron: Runs on page load – unreliable on low-traffic sites.
Disable Default WP-Cron
Add to wp-config.php: define('DISABLE_WP_CRON', true);
Create System Cron Job
cPanel → Cron Jobs → Add new: wget -q -O - https://yourdomain.com/wp-cron.php?doing_wp_cron
Recommended Frequency
Based on Site Traffic
- High traffic: Every 5-15 minutes
- Medium: Every 30 minutes
- Low: Hourly
Cron Command Methods Table
| Method | Command |
|---|---|
| WGET | wget -q -O - url |
| CURL | curl url |
| PHP CLI | /usr/local/bin/php /home/user/public_html/wp-cron.php |