Configuring a custom Cron job in WordPress Using the Cpanel

After disabling the default WordPress cron job, you’re now set to configure your own custom cron job.

The advantage of such a cron job is that it runs at a fixed time which you will set when configuring the cron job.

To configure the cron job you can use

  1. The cpanel and
  2. Ssh or command line.
  3. Log in to cPanel.
  4. In the Advanced section of the cPanel home screen, click Cron jobs.
  5. Under Cron Email, type the e-mail address that you want to receive notifications, and then click Update Email. Every time the cron job runs, the e-mail account will receive a message.
  6. Under Add New Cron Job, in the Common Settings list box, select Twice an hour.
  7. In the Command text box, type the following line. Replace username with your own cpanel username:

cd /home/username/public_html; /usr/local/bin/php -q wp-cron.php

6.Click Add New Cron Job. The new cron job settings take effect immediately.

Was this article helpful?

Related Articles

Leave A Comment?