How to Deactivate WordPress Plugin Without Admin Access
You can deactivate a WordPress plugin without admin access by renaming its folder via
FTP or your hosting file manager, or by editing the active_plugins option in the WordPress database using phpMyAdmin. Both methods stop the plugin from loading without needing the admin dashboard.Syntax
There are two main ways to deactivate a plugin without admin access:
- Rename plugin folder: Change the plugin folder name inside
wp-content/plugins/to disable it. - Edit database option: Modify the
active_pluginsentry in thewp_optionstable to remove the plugin from the active list.
Both methods prevent WordPress from loading the plugin.
none
wp-content/plugins/plugin-folder-name --> rename to --> plugin-folder-name-disabled
Example
This example shows how to deactivate a plugin by renaming its folder using FTP or file manager:
- Connect to your website files via FTP or hosting file manager.
- Navigate to
wp-content/plugins/. - Find the folder of the plugin you want to deactivate, for example
example-plugin. - Rename the folder to
example-plugin-disabled. - WordPress will no longer load this plugin.
Output
The plugin stops working and is deactivated without admin access.
Common Pitfalls
Renaming plugin folder incorrectly: If you rename the wrong folder or misspell it, the plugin won't deactivate.
Editing database without backup: Changing the active_plugins option in the database without a backup can cause site errors.
Cache issues: Sometimes caching plugins or server cache may delay the effect of deactivation.
php
<?php // Correct way: renaming plugin folder rename('wp-content/plugins/example-plugin', 'wp-content/plugins/example-plugin-disabled'); ?>
Quick Reference
| Method | How to Use | Effect |
|---|---|---|
| Rename Plugin Folder | Change folder name in wp-content/plugins/ | Plugin stops loading immediately |
| Edit Database | Remove plugin from active_plugins in wp_options table | Plugin deactivated without file changes |
| Use FTP or Hosting File Manager | Access files without admin dashboard | Safe way to deactivate plugins |
Key Takeaways
Rename the plugin folder in wp-content/plugins to deactivate without admin access.
Editing the active_plugins option in the database can also deactivate plugins safely.
Always back up your database before making direct changes.
Use FTP or hosting file manager to access files if admin dashboard is unavailable.
Check for caching issues if plugin deactivation does not appear immediately.