0
0
WordpressHow-ToBeginner · 4 min read

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_plugins entry in the wp_options table 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:

  1. Connect to your website files via FTP or hosting file manager.
  2. Navigate to wp-content/plugins/.
  3. Find the folder of the plugin you want to deactivate, for example example-plugin.
  4. Rename the folder to example-plugin-disabled.
  5. 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

MethodHow to UseEffect
Rename Plugin FolderChange folder name in wp-content/plugins/Plugin stops loading immediately
Edit DatabaseRemove plugin from active_plugins in wp_options tablePlugin deactivated without file changes
Use FTP or Hosting File ManagerAccess files without admin dashboardSafe 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.