2.14.1.2.2. Deactivate plugins in WordPress

Deactivating plugins can be useful if there are problems with the site and you cannot access its admin panel.

  1. Using the file manager or any FTP client, open the site root directory.
  2. Go to the wp-content/plugins subdirectory.
  3. Rename the plugin directories that you want to deactivate (to deactivate all plugins, rename the plugins directory itself).

To activate the plugins, simply revert their directories to their previous names.

  1. In the site configuration file, check the name of the database to which it is connected.
  2. In case of unforeseen situations, create a backup of the database or export it.
  3. Open database in phpMyAdmin.
  4. Execute SQL query (instead of wp_, use your database table prefix if it is different):
    UPDATE wp_options SET option_value = '' WHERE option_name = 'active_plugins';

Deactivated plugins can be activated in the usual way via the WordPress admin panel.

Teneur