WordPress normally checks for scheduled tasks when visitors load the website. This guide explains how to disable that automatic trigger when a separate server scheduler is already responsible for running WordPress tasks.
Before you start
Set up and test the replacement schedule first. Without another trigger, scheduled posts and plugin jobs such as backups may stop running on time.
This setting does not delete scheduled tasks and does not prevent an administrator or server scheduler from calling wp-cron.php directly.
Disable the visitor-triggered check
-
Back up
wp-config.phpin the website’s actual WordPress directory. Do not assume every installation is directly underpublic_html. -
Open the file in cPanel File Manager or another suitable editor.
-
Check whether
DISABLE_WP_CRONis already defined. Edit that definition rather than adding a second one. -
Add or set the following inside the PHP code, before the line that loads
wp-settings.phpand normally before the stop-editing comment:define('DISABLE_WP_CRON', true); -
Save the file and check that the website still loads.
-
Confirm that the replacement schedule runs and that a scheduled WordPress task completes.
Re-enable the default trigger
Remove the definition or change its value to false. Review the external scheduler at the same time so you do not leave unintended duplicate schedules.
For a server-based schedule, see how to set up a WordPress cron job using the command line.