How to replace or disable WP Cron in cPanel

Replacing WP-Cron with WP Toolkit (WordPress Management)

  1. Log in to your cPanel and click on WordPress Management from the left-hand side.
  2. Expand the menu of the website and toggle Take over wp-cron.php to disable WP-Cron.
    Disable cron step 2
  3. If you'd like to check which Cron Jobs have been taken over by WP Toolkit, open Cron Jobs from your cPanel's dashboard.
    Disable cron step 3

Replacing WP-Cron Manually

Disable WP Cron in WordPress Configuration file

  1. Log in to your cPanel and open your website's wp-config.php file using cPanel File Manager.
    Disable cron manual 2
  2. Add define('DISABLE_WP_CRON', true); above the line that says That’s all, stop editing! Happy blogging., and then save the file:
    Disable cron manual 3

Use cPanel to run WP Cron

  1. Open Cron Jobs in cPanel
    Replace cron manual step 1
  2. Set the time interval for the Cron Job with pre-defined selections in Common Settings (you can select Twice Per Hour or Once Per Day if you're not sure), or manually enter their values.
    Replace cron manual step 2
  3. Enter the following in the Command field (replace https://example.com/ with your website's domain):
    wget -q -O - https://example.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
    and click Add New Cron Job.
    The >/dev/null 2>&1 part of the command disables email notifications.
    Replace cron manual step 3
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What database settings do I use for scripts?

Server Hostname: localhost Database Username: <your username>_<database name> e.g....

How do I add a wildcard subdomain for Wordpress MU?

This can be easily done by logging into your cPanel control panel and clicking on "Subdomains"....

Do you support Silverstripe Hosting?

Yes, we run Linux servers designed to run the New Zealand developed Silverstripe application. If...

Strict Standards Errors for PHP

If you are getting errors similar to:Strict Standards: Non-static method JLoader::import() should...

Fix permissions of all directories and files

To change all the directories to 755 (-rwxr-xr-x): find /home/xxx/public_html -type d -exec...