SNAP Instructions WP-Cron: Scheduling Tasks in WordPress

WP-Cron: Scheduling Tasks in WordPress

Keep scheduled SNAP publishing running with a reliable WordPress task runner.

How WP-Cron works

WP-Cron handles WordPress background tasks, including scheduled publishing. By default, WordPress checks for due tasks when the site receives a visit. A quiet site can therefore run scheduled tasks late.

SNAP background publishing

SNAP uses WordPress scheduling to process publishing work in the background.

SNAP background publishing
SNAP background publishing - original interface

Use your host’s task scheduler

For predictable intervals, configure one system task to call WordPress’s wp-cron.php. Set up and test that task before turning off the visit-triggered runner.

1. Add a scheduled request

Use your hosting panel’s Cron Jobs or Scheduled Tasks. Choose an interval suitable for your publishing schedule, such as every minute.

curl --fail --silent --show-error --max-time 50 "https://example.com/wp-cron.php" > /dev/null

Replace https://example.com with the URL of your WordPress installation. Use the command path provided by your host. The cron expression for every minute is * * * * *.

2. Disable the visit-triggered runner

After confirming that the scheduled request works, add this line to wp-config.php before WordPress loads:

define( 'DISABLE_WP_CRON', true );

This changes how due tasks are triggered. Scheduled posts and other WordPress cron events still run through the system task.

cPanel example

Open Cron Jobs

Open Cron Jobs in cPanel.

Open Cron Jobs
Open Cron Jobs - original interface

Add the command

In Add New Cron Job, choose the interval and paste the command using your own site URL.

Add the command
Add the command - original interface

Confirm the saved task

Save the task and check that it appears in the current jobs list.

Confirm the saved task
Confirm the saved task - original interface

Plesk example

Open Scheduled Tasks

Open Scheduled Tasks for the correct subscription or domain. The original screenshot shows an earlier Plesk layout.

Open Scheduled Tasks
Open Scheduled Tasks - original interface

Set the interval and command

Create an enabled task, choose the interval, enter the command for your site, and save. For an every-minute schedule, all five cron fields use *.

Set the interval and command
Set the interval and command - original interface

Check that tasks run

  • Confirm that your scheduled request can reach wp-cron.php over HTTPS.
  • Check the task output or hosting logs for connection errors and timeouts.
  • Check a scheduled SNAP delivery and its result.
  • Use one intended cron runner; avoid accidentally creating duplicate system tasks.
  • If your host provides managed WordPress cron, ask how it is triggered before adding another runner.

For further details, see WordPress: system task scheduling.

Scroll to Top