WP Safe Mode

WP Safe Mode

Disable plugins or switch themes for just you or the whole site for debugging, troubleshooting or accessing and restoring a broken website.

  • Frequently updated
    Very good! This plugin is actively maintained and the last update was released 73 days ago.
  • This plugin is tested with the last major release of WordPress
    Content for list item
  • Compatible with the latest major PHP release
    This plugin requieres PHP 5.2.6 or higher. The latest stable PHP 8.3.8 was released on 06 June 2024
  • No information about vulnerabilities and unfixed security issues is available.
    Content for list item

Ratings

8

Active installs

2K

Total Downloads

17K

Support Threads

0

Last updated

03 April 2024

Added

25 September 2018

Versions

100%
  • Version 1.3

About WP Safe Mode

Changelog

1.3

1.2

1.1

1.0

How to install WP Safe Mode

Installing

  1. If installing, go to Plugins > Add New in the admin area, and search for events manager.
  2. Click install, once installed, click ‘activate’.
  3. The WP Safe Mode loader will attempt to install itself automatically.
    • If something goes wrong, you’ll be asked to visit the settings page for manual installation instructions.
  4. Visit the WP Safe Mode menu item on your dashboard admin area.
  5. Modify your Safe Mode settings as needed.
  6. Enable Safe Mode by clicking one of the buttons, or via the Admin Bar within the Safe Mode menu item.

Manual Instllation (Recommended)

  1. Download the WP Safe Mode plugin and unzip it, you’ll now have a wp-safe-mode folder.
  2. Connect to your server (for example via FTP) and go to your website folder.
  3. Add this line to your wp-config.php file:
    if( !defined('WPMU_PLUGIN_DIR') ) define( 'WPMU_PLUGIN_DIR', dirname(__FILE__).'/wp-content/wp-safe-mode' ); //WP Safe Mode
  4. Create the folder named wp-safe-mode inside your wp-contents folder.
  5. Uploade the file wp-safe-mode/bootstrap/wp-safe-mode-loader.php into the newly created wp-safe-mode folder.
  6. Upload the entire wp-safe-mode folder to your plugins folder in wp-content/plugins.

If your site is broken and you cannot install plugins or access the dashboard, you can modify the loader file temporarily to gain access by following these additional steps:

  1. Open the plugin file wp-safe-mode-loader.php and change this line:
    public $safe_mode_on = false;
    to
    public $safe_mode_on = true;
  2. Upload the modified wp-safe-mode-loader.php file to the wp-contents/plugins/wp-safe-mode folder.
  3. Visit your site, deactivate plugins etc.
  4. Undo the changes you just made to wp-safe-mode-loader.php when you want to disable safe mode.

Further Installation Details

You can also enable and disable plugins and themes directy from the loader file code by modifying the properties of the WP_Safe_Mode class, as well as enabling safe mode in different ways such as restricting it to specific IPs.

Please see the PHP code comments within the class for more information on each property.

The loader can also be installed directly into your mu-plugins folder, but we recommend our own installation steps if you already have files in that folder (i.e. it already exists). Otherwise you can also upload it there directly.