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

  1. Back up wp-config.php in the website’s actual WordPress directory. Do not assume every installation is directly under public_html.

  2. Open the file in cPanel File Manager or another suitable editor.

  3. Check whether DISABLE_WP_CRON is already defined. Edit that definition rather than adding a second one.

  4. Add or set the following inside the PHP code, before the line that loads wp-settings.php and normally before the stop-editing comment:

    define('DISABLE_WP_CRON', true);
  5. Save the file and check that the website still loads.

  6. 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.