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
- The cpanel and
- Ssh or command line.
- Log in to cPanel.
- In the Advanced section of the cPanel home screen, click Cron jobs.
- 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.
- Under Add New Cron Job, in the Common Settings list box, select Twice an hour.
- 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.