How to disable WordPress plugins

There are three common ways to disable WordPress plugins – via admin dashboard, cPanel File manager and website database. In this guide we will cover each option:


NOTE: Before proceeding with any changes, make sure that you generate a full backup of your website. If you've created your site using Softaculous script installer, feel free to refer to this guide as well (step #4 – Backup software).



Disable plugins via WordPress dashboard

1. Log into your WordPress dashboard and navigate to Plugins menu >> Installed Plugins:



2. You will be redirected to the list of the plugins. Here you can check the number of the installed plugins and their statuses.

Each active plugin has Deactivate button beneath. Click on it and the plugin will be turned off:



If due to some reason you are unable to access the WordPress admin dashboard, you can deactivate the plugins in the alternative ways.
 



Disable plugins via File Manager

1. Log into your cPanel, navigate to Files section and click on File Manager:
 
For cPanel Basic Theme:

 

 
For cPanel Retro Theme:


2. Once inside, go to your WordPress website directory root. Navigate to /wp-content/plugins folder and find the plugin you need to disable.

You can simply rename the plugin folder and save the changes:

Make sure that you remember the initial name of the plugin folder in case you need it back on at some point:





NOTE: Some plugins, e.g., caching ones, are hard-coded, and the folder renaming will not disable them. In such cases, you will need to disable the plugin in the database.

 
 


Disable plugins via website database

1. Log into your cPanel, navigate to Databases section and click on phpMyAdmin:

 
For cPanel Basic Theme:
 

 
For cPanel Retro Theme:

 

2. To check what database is in use by your WordPress website, check wp-config.php file located in the website root:




3. Expand the list of your databases and click on the one assigned to your WordPress installation. Navigate to the upper menu bar and click on SQL:



4. Insert the following query and click Go:

SELECT *FROM wp_options WHERE option_name = 'active_plugins';




This command is adjusted to the default WordPress 'wp' database prefix. However, in some case the prefix may differ, so you will receive the following error:



Thus, you may need to adjust the command according to your database prefix:



5. Once the query is executed, click on Edit:



You will see the following output like this one:

a:4:
{
i:0;s:19:"akismet/akismet.php";
i:1;s:36:"contact-form-plugin/contact_form.php";
i:2;s:45:"limit-login-attempts/limit-login-attempts.php"; i:3;s:29:"use-any-font/use-any-font.php";
}


Number 4 in the beginning shows the total amount of active plugins. They are numbered from i:0 to i:n-1, where n is 4 in our case.

To deactivate the plugin, simply remove the corresponding line and save the changes. Make sure that the numbering and n-value of the plugins are corrected. For example, if you need to turn off Akismet, the output to save will look like:

a:3:
{
i:0;s:36:"contact-form-plugin/contact_form.php";
i:1;s:45:"limit-login-attempts/limit-login-attempts.php";
i:2;s:29:"use-any-font/use-any-font.php";
}


NOTE: To deactivate all the plugins, simply erase the code from the box.

5. Click on Go. Your plugin is disabled now.

NOTE: The final output is displayed in a single row and should be saved in the same way. We have divided it into several ones for your convenience only. Thus, we advise to copy the code into any TXT editor, edit it and then copy-paste it back in one line.



That's it!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to add Google AdSense to your WordPress website

After installing WordPress and creating a website, you might want to earn some money with it....

How to add a favicon to a WordPress website

Favicon (also called site icon) is a small image that appears next to your website title in the...

How to back up a WordPress site using CodeGuard

CodeGuard makes it very easy for WordPress users to keep their blogs backed up. You can have your...

How to change upload filesize limit in WordPress multisite

The upload file size limit controls the size of a single file that can be uploaded via any means...

How to change WordPress site address (URL)

This guide will show you how you can change URL for your WordPress-based website. You may find it...