Back to Making use of Your cPanel Account

How To Disable All WordPress Plugins

This article is for cPanel Accounts. Determine where your account is with this guide.

If WordPress gives you the white screen of death, you can usually attribute it to a theme or plugin issue. Here is a guide on quickly disabling all of your plugins for WordPress directly on the database through your cPanel >> PHPMyAdmin tool.

Before beginning, make a backup copy of your database. Then, log in to your database using phpMyAdmin, and navigate to the “active_plugins” column of the “wp_options” table.

Once the active_plugins column appears, click to edit it. You will see something similar to the following, depending on the number and type of plugins you have installed:


That entire array of code represents every active plugin on your site. Thus, to quickly disable all plugins without using the WP Admin area, highlight the entire block of code, cut it out, and paste it into a safe, offline text file. After removing the code, click the button to save your changes and that’s it. All WordPress plugins are now deactivated (yet still installed, and with all plugin options intact). This is a huge time-saver that comes in handy during those mission-critical, time-sensitive situations where every second counts. Once you are ready to re-activate your entire set of plugins, simply cut/copy & paste the preserved code back into the “active_plugins” field. Click save and done. Again, don’t forget to back up your database before editing it.

Alternately, here is a one-second query to disable all plugins:

UPDATE wp_options SET option_value = '' WHERE option_name = 'active_plugins';

Upon execution, this query will clear the active_plugins field of all active plugins, effectively disabling (without uninstalling or modifying) the entire set. This method is great if you plan on re-enabling each plugin individually, say, after resolving some heinous server error. Whereas the previous technique makes it easy to re-enable all plugins en masse, this query is perfect for simply “nuking” all active plugins with no remorse.

The method above works only for WordPress versions less than 2.9. For 2.9 and better, use this instead:

UPDATE wp_options SET option_value = 'a:0:{}' WHERE option_name = 'active_plugins';

So use that if working with WP2.9 or beyond.

Related Articles

Does WestHost Allow Remote MySQL
Does WestHost Offer Postgres MySQL
How To Backup A MySQL Database
How To Create And Download A Backup In CPanel
How To Import A MySQL Database

Can’t Find what you need?

No worries, Our experts are here to help.