Why Renaming a Plugin Folder Disables It
WordPress stores the list of active plugins in the active_plugins row of the wp_options database table. Each entry is a path such as woocommerce/woocommerce.php, relative to the /wp-content/plugins/ directory. On every page load, WordPress tries to include those files. If a plugin folder has been renamed or moved, the file path no longer resolves and the plugin’s code never runs.
This makes File Manager the fastest fix when a plugin update causes a critical error, a white screen, or a redirect loop that locks you out of wp-admin. You don’t need FTP credentials, SSH access, or database edits. Your hosting control panel already gives you browser-based access to the same files.
Renaming is also non-destructive. The plugin’s settings stay in the database, and its files stay on the server. When you load the Plugins screen while the folder is renamed, WordPress shows a notice such as The plugin has been deactivated due to an error: Plugin file does not exist. It also removes the plugin from the active list. After you restore the original folder name, the plugin appears again as inactive. You can then reactivate it with one click, and its configuration will still be in place.
Step-by-Step: Disable a Single Plugin
- Open File Manager in your hosting panel. In cPanel, it is under the Files section. In Plesk, click Files in the left sidebar. In Hostinger hPanel, go to Websites → Manage → File Manager.
- Locate your WordPress root. This is usually public_html. For addon domains or subdomains, it is often a subfolder named after the domain. You have found the root when you see wp-config.php, wp-admin, and wp-content together.
- Navigate to /wp-content/plugins/. Each plugin has its own folder, named by its slug, such as elementor, wordfence, or wp-rocket. If you aren’t sure which folder matches the plugin causing problems, sort by Last Modified. The most recently updated plugin is often the culprit.
- Rename the folder. Right-click the folder, choose Rename, and add a suffix, for example elementor-disabled. A suffix keeps the folder next to the original in the alphabetical list, so it’s easy to find again later.
- Test the site. Reload both the front end and /wp-admin/ in a private browser window, which avoids cached pages. If the error is gone, you have found the problem plugin. Leave it disabled until a fixed version is released or you’ve rolled back to an earlier version.
Isolating the Culprit When You Don't Know Which Plugin Broke
If you can’t tell which plugin is causing the error, disable all of them at once. Rename the entire plugins folder to plugins-off. WordPress will then find no plugins and load with only your theme. If the site recovers, a plugin is the cause. If it doesn’t, check your theme or core files next.
To find the specific plugin:
- Log in to wp-admin and open the Plugins screen while the folder is still renamed. This clears every plugin from the active list.
- Rename plugins-off back to plugins. All plugins now appear as inactive.
- Reactivate plugins one at a time from the dashboard, reloading the site after each one. The plugin that brings the error back is your culprit.
For sites with dozens of plugins, use halving instead. Reactivate half the list, test, and keep splitting whichever half contains the error. With 40 plugins, this finds the bad one in about six rounds instead of forty.
Before you start, open wp-content/debug.log if it exists. Fatal errors often name the exact file path, such as /plugins/some-plugin/includes/class-core.php, which tells you immediately which folder to rename.
Practical Tips for Plugin Recovery
- Check mu-plugins and drop-ins too. Must-use plugins live in /wp-content/mu-plugins/. They load automatically and never appear in the normal Plugins list, so renaming the main plugins folder won’t stop them. Hosts and security tools often place files there. Caching plugins also install drop-ins directly in /wp-content/, such as advanced-cache.php and object-cache.php. These can keep breaking a site after the parent plugin is disabled. Rename them to advanced-cache.php.bak to neutralize them.
- Turn on debug logging before testing. Edit wp-config.php in File Manager and set define(‘WP_DEBUG’, true);, define(‘WP_DEBUG_LOG’, true);, and define(‘WP_DEBUG_DISPLAY’, false);. Errors are then written to /wp-content/debug.log instead of being shown to visitors. Set WP_DEBUG back to false when you’re done, because the log can grow large and expose server paths.
- Don’t delete the folder as a shortcut. Deleting a plugin through File Manager skips its uninstall routine. It can also leave you without a working copy if the replacement version fails as well. Rename it first, then remove it through Plugins → Delete once you’re sure you don’t need it. If you need an earlier version, the plugin’s WordPress.org page has older releases under Advanced View.
Does Your Site Have This Problem?
Every check in this article runs automatically on the sites we look after. You can run the same health checks on your own site in seconds with the free SiteHale plugin — no account, nothing transmitted anywhere. Or have us do it: we’ll crawl your site and send you a written report, free.