How to deactivate all plugins in WordPress without accessing wp-admin

deactivate all plugins in WordPress without wp-admin access

If you have locked out from WordPress Admin due to any error either plugin, theme or due to any other error, and you need to deactivate all plugins. Also when you’re troubleshooting your website it is recommended to deactivate all plugins. In this tutorial you’ll learn, how to deactivate all plugins without accessing your site Admin Panel.

To achieve this you have two methods:

  1. FTP Method
  2. Database (phpMyAdmin) Method

Using FTP

What you can do is connect to the files using FTP. Here you need to use a FTP Client. Like FileZilla or any other familiar tool. Then you need to navigate wp-content folder. There you can see list of folders like plugins, themes, upgrade.

You need to rename the plugins folder to something like plugins_old. You’re done and now all your installed plugins were deactivated.

How do I disable WordPress plugins without admin access?

You can do this without a FTP Client and accessing the File Manager directly. Once you locate to the same wp-content -> plugins you need to do the same. Once the rename is done all your plugins has been deactivated now and you’re done.

Using Database

Select your database and navigate to wp_options table. Note: If have renamed the table prefix, your prefix is different from wp_. Don’t panic if your prefix value is different from wp_. Go to your_prefix_options table. Other all same.

Then search for query plugins_activate and locate the row. Click on the edit and you need to change the option_value.

change the its option value to a:0:{} and save. You are done.

Now all plugins were deactivated. If you need to check which plugin cause you the error, you need to activate plugins one by one and check. Using this method you can identify which plugin caused the error.

That is all from this tutorial regarding how to deactivate all plugins in WordPress without accessing wp-admin. Hope you enjoyed the tutorial. Happy learning ahead. Thanks for reading.

Recommended: Please follow our step by step guide how to create a WordPress Theme from scratch. You’ll be able to create your own theme at the end of these lessons.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *