أهم النقاط
- Renaming a plugin's folder deactivates it instantly.
- Renaming the whole plugins folder disables every plugin at once.
- Plugin settings stay in the database and return when you reactivate.
With cPanel File Manager
- Open File Manager and go to
public_html/wp-content/plugins. - To disable one plugin, right-click its folder → Rename → add
.offto the end. - To disable all plugins, rename the
pluginsfolder itself toplugins.off, then create a new empty folder calledplugins. - Log in to wp-admin. WordPress notices the missing plugins and deactivates them.
To bring them back, restore the original folder names and reactivate each plugin from Plugins.
With WP-CLI over SSH
cd ~/public_html
wp plugin list # see what's active
wp plugin deactivate some-plugin
wp plugin deactivate --all
With phpMyAdmin
- Open phpMyAdmin and select the WordPress database.
- Open the
wp_optionstable (your prefix may differ) and find the row whereoption_nameisactive_plugins. - Edit it and set the value to
a:0:{}. All plugins are now inactive.
الأسئلة الشائعة
Which plugin is breaking my site?
Disable all plugins, confirm the site works, then reactivate them one by one in wp-admin until the problem returns.
Do I lose data by disabling a plugin this way?
No. Only uninstalling a plugin through wp-admin can remove its data, and only if the plugin is written to do so.