How to disable wordpress wp-cron

Evidently there is a huge problem with wp-cron being spawned multiple times which will overload your server.

DISBALE wp CRON in  wp-config.php:

  • Open your wp-config.php
  • Add next  code:
define('DISABLE_WP_CRON', 'true');
  • Save your wp-config.php file

Now, Go to your cpanel account and add CPANEL cron:

  • click on Cron Jobs.
  • under section  Add New Cron Job Select Once an hour from the Common Settings drop-down
  • In the field Command fill in next code to run our cron job and click Add New Cron Job
wget -q -O - http://yourwebsite.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1

It is highly recommended running wp-cron via  crontab rather than WordPress’s default way, especially for sites with high traffic.