Cyber Week: 50% off your first year of new hosting on an annual plan. Use code BLACKFRIDAY2026 by Dec 6, 11:59 PM ET. Renews at the plan’s yearly price. See plans

View Categories

Schedule a task with cron jobs

A cron job is a task the server runs for you, on a schedule. If a plugin, a store, or your developer says you need one, you can add it yourself in your control panel. You don’t need SSH for this. SSH isn’t included on Starter, Simple, or Business.

Before you start #

  • Open your control panel. See How to open your control panel.
  • Have the command or web address your software gave you.
  • Don’t add the same job twice. If the list already has one for that script or address, leave it.

Add a cron job #

  1. Open your control panel. See How to open your control panel.
  2. Open Websites and select your site.
  3. Open Advanced, then Developer tools.
  4. Open Cron jobs.
  5. Select Add cron job.
  6. Under Cron type, choose Run command or Request URL, depending on what your software gave you.
  7. Enter the command in Command, or the web address in Request URL.
  8. Choose how often it should run from Interval. The default is Every 15 minutes. The other choices are Every minute, Every hour, Every day, Every week, Every month, and Custom. If you choose Custom, set Minute, Hour, Day of month, Month, and Weekday.
  9. Select Add.

If you’re running a PHP script, your site files live in public_html. A typical command looks like this:

php $HOME/public_html/yourscript.php

Replace yourscript.php with your real file name. $HOME stands for your site’s home folder. The server fills in the rest, and the job uses the same PHP version as your site.

If your software gave you a link to open on a schedule, choose Request URL and enter that web address, starting with https://.

WordPress scheduled tasks #

WordPress can run scheduled posts and other tasks when someone visits the site. If your developer asked you to set up a real cron job instead, do this:

  1. Look at the Cron jobs list first. If you already see a job that mentions wp-cron.php, don’t add another one.
  2. Otherwise, select Add cron job, choose Request URL, and enter this address in Request URL:
https://yourdomain.com/wp-cron.php?doing_wp_cron

Replace yourdomain.com with your real domain. Set Interval to Every 15 minutes, then select Add.

If you also want WordPress to wait for that scheduled job, and not run those tasks when someone visits the site, add this line to wp-config.php, above the line that says “That’s all, stop editing!”:

define( 'DISABLE_WP_CRON', true );

Make a backup before you edit that file. See Back up and restore your site. You can open wp-config.php from the Files tab in your control panel.

Change or delete a job #

Each job in the list has a menu on its row. Use that if you need to change or remove a job.

A few things worth knowing #

The schedule follows the server clock. The page doesn’t show a time zone. If the exact hour matters, add the job and watch when it first runs, so you can confirm the timing.

Don’t run a job every minute unless you truly need to. Frequent jobs use more of your plan’s resources.

Leave Allow editing of cron from website container off unless a developer asked you to turn it on. It’s off by default, and most sites never need it.

FAQ #

Do I need SSH for cron jobs? #

No. Cron jobs work on Starter, Simple, and Business without SSH. See SSH access on your hosting plan.

My job doesn’t seem to run. What should I check? #

Confirm the command or address is right, including public_html in the path for a PHP script. For a web address, the domain needs to point here and have a working SSL certificate if you used https://. If the exact hour seems off, remember the schedule follows the server clock, and use a test run to confirm when it fires. Still stuck? Support 24/7/365 can help. Start at Get Help, and include the site, the command or address, and when you expected it to run.

Can I get an email each time a job runs? #

We can’t promise a setting that emails you after each run. If you need to see whether a script is failing, have it write to a log file. Support 24/7/365 can also help. Start at Get Help.

Related #