Configure Wp Cron to create trackers in the TrackShip and Send TrackShip Shipment status Emails and SMS notifications to your customer.
Disabling the virtual WordPress cron job
- Log in to your account using cPanel or SSH.
- Using the cPanel File Manager or the command line, open the wp-config.php file in a text editor.
- The wp-config.php file is located in the directory where you installed WordPress. Usually, this is the public_html directory.
- Add the following line to the wp-config.php file:
define('DISABLE_WP_CRON', true);- Save the changes to the wp-config.php file and then exit the text editor. The virtual WordPress cron job is now disabled.
Configuring a real cron job for WordPress
To set up a WordPress cron job using cPanel, follow these steps:
- 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.
- If you do not want to receive e-mail notifications for the cron job, you can append >/dev/null 2>&1 to the command, which redirects all output to /dev/null.
- Under Add New Cron Job, in the Common Settings list box, select Twice an Hour.
- In the Command text box, type the following line:
cd ${HOME}/public_html; /usr/local/bin/php -q wp-cron.phpThis line assumes that you installed WordPress in the document root (public_html) directory. If you installed WordPress in another directory, modify thecdcommand to change to that directory instead.