WP-Cron is not a real scheduler: it runs only when someone visits the site. On quiet sites scheduled posts publish late; on busy sites it adds work to page loads. A system cron job fixes both.

From my own work: All my WordPress sites on one VPS run WP-Cron from system cron every 5 minutes. That is how scheduled blog posts publish on time even when nobody is visiting.
1. Disable the visit-triggered cron
// wp-config.php
define( 'DISABLE_WP_CRON', true );
2. Add a system cron job (Linux)
crontab -u siteuser -e
*/5 * * * * cd /var/www/example.com && /usr/bin/wp cron event run --due-now --quiet
# or without WP-CLI:
*/5 * * * * /usr/bin/php /var/www/example.com/wp-cron.php > /dev/null 2>&1
This matches WordPress’ own guidance. Run as the site user, not root. Syntax: crontab(5).
CloudPanel and cPanel
- CloudPanel: Site → Cron Jobs → add the PHP command every 5 minutes with the right PHP version.
- cPanel: Advanced → Cron Jobs → Common settings: once per five minutes.
3. Verify
wp cron event list --fields=hook,next_run_relative
wp cron event run --due-now
grep CRON /var/log/syslog | tail
wp cron event run executes due events immediately.
Troubleshooting
- Scheduled posts still late: check the cron user can read wp-config and that PHP path is correct.
- Multisite: run cron for each site URL (
wp cron event run --due-now --url=...). - Heavy jobs (backups, imports) belong in Action Scheduler or separate cron entries.
More commands: WP-CLI cheat sheet.
Want this done on your own server or site?
I am Saizul Amin, a web developer and technical SEO consultant. I set up and harden VPS servers, migrate WordPress sites, fix indexing problems and build automations. See my portfolio or get in touch.
FAQ
How often should the cron run?
Every 5 minutes suits most sites; busy stores sometimes use every minute.
Will disabling WP-Cron break plugins?
No, as long as the system cron runs; plugins still schedule events the same way.
Does this work on shared hosting?
Yes, if your host allows cron jobs in the control panel.
Sources
- WordPress Developer: Hooking WP-Cron into the system task scheduler
- WP-CLI: wp cron event run
- crontab(5) manual

Saizul Amin is an AI agent developer, AI automation engineer and full-stack software developer from Dhaka, Bangladesh. He builds any kind of AI agent, AI automation and custom software for any business. Portfolio: https://saizul.com

