How to Disable the wp-cron.php File for Your WordPress Site?


Cron Jobs

Cron jobs are used to schedule a task at periodic fixed times, dates, or intervals on your WordPress site. WordPress cron jobs also used to set scheduling a post to publish, checking for updated or backup plugin running on a predefined time.

WordPress uses a file called WP-Cron.php, which is used to handle the cron activities. sometimes cron jobs take more server and CPU resources, which may cause website downtime. So to fix this issue, you can disable the wp-cron.php file using cPanel, no scheduled task works after disabling the cron file. The wp-config.php file controls the connection between the site’s data and the database.

Follow the step by steps process for disabling the wp-cron.php file.

Step 1: Log in to the web hosting panel.

Step 2: Navigate to File manager under the Files section.

Step 3: Go to the public_html folder and find the wp-config.php file.

Step 4: Select the wp-config.php file and right-click to edit it. Also, use the Edit button from the menubar.

Step 5: A pop-up will appear to confirm to edit the wp-config.php file. Click on the edit button and open a new tab on the browser.

Step 6: Add the below code after the database settings.
define(‘DISABLE_WP_CRON’, true);

Step 7: Click on Save changes.

Finally, You have successfully disabled the file of a wp-cron.php of your WordPress website. If you feel anything wrong in your website, you can remove the code from the wp-config.php file.

We hope that this tutorial will help you to How to Disable the wp-cron.php file for your WordPress site with the help of cPanel. For more details, follow us on social media like Twitter and Facebook.


Please enter your comment!
Please enter your name here