Posted on

Learn How to Disable WP Cron & Use CPanel Cron Job Instead

WP CRON is not reliable if your wordpress site doesn’t get a lot of visits. Therefore, it is better to disable WP Cron and use a real cron by using CPanel cron jobs.

💪🏼 Add this line of code into your wp-config.php file

define(‘DISABLE_WP_CRON’, true);

For cpanel cron job, add this command line to run twice per hour

php -q /home/username/public_html/wp-cron.php

Here’s an alternative command to use if the above doesn’t work for some reason

wget -q -O – >/dev/null 2>&1

Please see the video for tutorial on disabling wp cron and setting up the cpanel cron job.



Leave a Reply

Your email address will not be published. Required fields are marked *