0
0
WordpressHow-ToBeginner · 3 min read

How to Deactivate a Plugin in WordPress Quickly and Safely

To deactivate a plugin in WordPress, go to the Plugins menu in the admin dashboard, find the plugin, and click Deactivate. Alternatively, you can rename the plugin folder via FTP or file manager to deactivate it manually.
📐

Syntax

In WordPress, deactivating a plugin is done through the admin dashboard or by renaming the plugin folder on the server.

  • Admin Dashboard: Navigate to Plugins > Installed Plugins, then click Deactivate under the plugin name.
  • FTP/File Manager: Rename the plugin folder inside wp-content/plugins/ to disable it.
plaintext
No code syntax is required for dashboard deactivation, but for FTP method:

Original folder: wp-content/plugins/plugin-name
Rename to: wp-content/plugins/plugin-name-deactivated
💻

Example

This example shows how to deactivate a plugin named example-plugin using FTP by renaming its folder.

plaintext
1. Connect to your website server using an FTP client or file manager.
2. Navigate to the <code>wp-content/plugins/</code> directory.
3. Find the folder named <code>example-plugin</code>.
4. Rename it to <code>example-plugin-deactivated</code>.

WordPress will detect the folder name change and automatically deactivate the plugin.
Output
The plugin 'example-plugin' will be deactivated and no longer active on your WordPress site.
⚠️

Common Pitfalls

  • Trying to deactivate a plugin when you don't have admin access will fail.
  • Renaming the wrong folder can break your site or deactivate the wrong plugin.
  • Forcing deactivation by deleting plugin files can cause errors if the plugin stores data or settings.
  • Always backup your site before deactivating plugins, especially if done via FTP.
bash
Wrong way (deleting plugin folder without backup):

rm -rf wp-content/plugins/example-plugin

Right way (renaming folder to deactivate safely):

mv wp-content/plugins/example-plugin wp-content/plugins/example-plugin-deactivated
📊

Quick Reference

ActionHow to Do It
Deactivate via DashboardGo to Plugins > Installed Plugins, click Deactivate under the plugin name
Deactivate via FTPRename plugin folder inside wp-content/plugins/
AvoidDeleting plugin files without backup
BackupAlways backup before making changes

Key Takeaways

Deactivate plugins safely via the WordPress admin dashboard whenever possible.
Renaming the plugin folder via FTP is a manual way to deactivate plugins if dashboard access is unavailable.
Always backup your site before deactivating or modifying plugins.
Avoid deleting plugin files directly to prevent site errors.
Check plugin status after deactivation to ensure your site works correctly.