If you're unable to access your WordPress admin dashboard, you can still disable plugins directly from your hosting server or using a file manager. This method is especially helpful if a plugin is causing errors that prevent you from logging in.
Method 1: Disabling Plugins via File Manager
-
Access the File Manager: Log in to your hosting control panel and open the File Manager.
Alternatively, you can use an FTP client like FileZilla to connect to your website’s root files. -
Navigate to the Plugins Folder:
- Locate the root folder of your WordPress installation. This is often named
public_html
,www
, or similar. - Go to
wp-content
>plugins
.
- Locate the root folder of your WordPress installation. This is often named
-
Rename the Plugin Folder:
- Find the folder of the plugin you want to disable. Each plugin has its own folder named after the plugin.
- Right-click on the plugin folder and choose the "Rename" option.
- Change the folder name to something like
plugin-name-disabled
. WordPress will automatically disable any plugin folder it can’t locate.
-
Check Your Website:
- Try accessing your website or the WordPress admin panel again. If the plugin was causing issues, they should be resolved, and you should be able to log in.
Note: To re-enable the plugin, rename the folder back to its original name.
Method 2: Disabling Plugins via Database (Advanced)
If renaming the plugin folder doesn’t resolve the issue, or if you prefer using the database:
-
Access phpMyAdmin:
- Log in to your hosting control panel and open phpMyAdmin.
-
Find the Active Plugins Entry:
- Locate your WordPress database in phpMyAdmin.
- Go to the
wp_options
table (the prefixwp_
may vary depending on your setup). - Search for the
active_plugins
row in theoption_name
column.
-
Edit the
active_plugins
Row:- Select Edit on the
active_plugins
row. - This entry contains a serialized array of active plugins.
- You can clear this field or remove specific plugin entries if you’re comfortable editing serialized arrays.
- Select Edit on the
-
Save Changes and check if you can access the site or admin panel again.
Troubleshooting Tips
- Backup First: Before making changes, always create a backup of your files and database.
- Check for Themes: Occasionally, themes can cause similar issues. Try switching the theme via the database if plugin changes don't work.
By following these steps, you should be able to disable problematic plugins without needing WP-admin access.