Maintenance Mode

Description

As a web developer working with WordPress almost every day, very often I came across problem that If I wanted simple maintenance plugin to do some updates on my or client’s website, I came across all these useless and overcomplicated plugins until I decided that I’ll make one myself which will be the one I’ll be confident and happy to use with ease.

Maintenance Mode is very simple and it’s using WordPress’s wp_die() function which is core function of WordPress, which makes this plugin feel and work as a part of WordPress core. There is settings page under “Settings” in the main wp-admin menu where you can enable maintenance mode or change content using WYSIWYG editor so you can also add pictures, links etc. When activated and logged in as admin, you can see website as usual, rest of the users / visitors can see maintenance mode. You can see the maintenance mode as admin in preview mode using preview link on the settings page or simply open website in private mode or different browser to double check if it’s enabled and working. There is also indicator in admin bar that changes colour to red when maintenance mode is enabled.

Help support and translate this plugin!

Features:

  • Simplicity – Built to be as simple as possible. Easy to use.
  • Customisable – WYSIWYG available in full glory. You can add images and other media including links and pretty much everything you can do with WYSIWYG. Text / Code tab is available too for custom markup.
  • Works on mobile – Because of it’s simplicity, maintenance mode works very well on mobile devices.
  • NO ADS – No ads. Seriously.
  • NO PAID UPGRADES – No paid upgrades. Seriously.
  • Updates – Regular updates and maintenance.
  • Support – Support button available.
  • Preview – Preview button available.
  • Compact – It’s developed to be as compact as possible.
  • Role Control – User Role control is available since 2.0

Important! Users that are using Cache plugins, please read below:
When enabling or disabling Maintenance Mode, don’t forget to flush your cache!

Filters
ljmm_site_title – Filter page title while in maintenance mode

ljmm_admin_bar_indicator_enabled - Control visibility of admin bar indicator

Actions
ljmm_before_mm – Runs at the beginning of core maintenance method

Having trouble? Please read FAQ first, if you need any assistance, you can use support button on the settings page of the Maintenance Mode.

Development on GitHub
The development of Maintenance Mode takes place on GitHub. Bugs and pull requests are welcomed there.

Screenshots

  • Example with default message.
  • Admin Bar Indicator (Red when active)
  • Settings page in admin view with default message.
  • Settings page in admin view with advanced settings.
  • Example with image and link.
  • Insert Media available for WYSIWYG.

Installation

  1. Upload lj-maintenance-mode to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Navigate to Settings -> Maintenance Mode or simply click on Admin Bar indicator for settings to enable maintenance mode.

FAQ

Installation Instructions
  1. Upload lj-maintenance-mode to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Navigate to Settings -> Maintenance Mode or simply click on Admin Bar indicator for settings to enable maintenance mode.
Plugin doesn’t seem to work. What should I do ?

First, if you are using Cache plugin such as WP Super Cache or W3 Total Cache, flush all your cache. Secondly, disable all other plugins and try enabling just Maintenance Mode and see if problem persist. This should solve most common problems. If not, don’t hesitate to contact me via Support button from Settings page

Can I change background colour?

Not by default. Unless you are developer and you “inject” your own styles in to the wp_die() page.

Reviews

A breath of fresh air

The best choice for a simple maintenance mode. No bloat, no newsletter signup, no multitude of options just to get it working, no reading the manual. Activate this and put your site in maintenance mode in 2 clicks. A red flag in the admin bar tells you it’s working. Thank you!

Sixth star for the red flag!

The maintenance page SHOULD be simple, because it is not a substitute for our website, this is an excuse for an unpleasant situation that should last as little as possible. This is why I really appreciate your clean solution.

Having said that, extra thanks for the red maintence flag on the admin bar! It is so easy to leave your site in maintenance mode when the work is done and go to sleep…

The best free maintenance mode plugin out there

I’m tired of all the other plugins that have a ton of features that I’m really never going to use. This plugin makes it easy to set my site in maintenance mode and not have to worry about extra customizations, ads, or bloat.

It’s clean, lightweight and effective.

If you don’t need the excessive features, look no further than this plugin.

Simple and clean

So many maintenance mode plugins out there … this is the one you want. One plugin file that’s easy to read and crib from? That’s the WP Way! Nice work.

Great for staging! Clean, simple and safe!

Use this plugin to stage your test site on the internet instead of on your computer. This is more realistic staging, and it lets you unlock your test site briefly to run web-based performance tests and speed tests.

One feature I love is that you always have an indicator to show you are in maintenance mode. With other plug-ins, there is a risk that maintenance mode is turned off without you being aware of it.

As of right now, there is only one review that is not 5-star, and it is due to a missing feature that was added very quickly after the review. That negative review is bogus and unfair. The reviewer should have started with a question, and then should have given a 5-star review due to the quick response and added feature.

This is a clean & simple maintenance mode plugin (without slide shows, countdown clocks, etc.), so there is less stuff that can go wrong. This plugin displays a regular HTML page, so you can still make it fancy if you want to. This will be sufficient for 99% of WordPress users.

If you want a basic staging/maintenance-mode plugin that WORKS, then you can’t go wrong with this one. Highly recommended!

Read all 40 reviews

Contributors & Developers

“Maintenance Mode” is open source software. The following people have contributed to this plugin.

Contributors

“Maintenance Mode” has been translated into 3 locales. Thank you to the translators for their contributions.

Translate “Maintenance Mode” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

2.3.2

  • Added SiteOrigin Page Builder compatibilty (Thanks to @relgit)

2.3.1

  • Hot Fix issue where user got locked out of admin area in maitenanice mode.

2.3

  • Small refactor, extract some of the parts to it’s own method to make everything a bit cleaner
  • Added ‘ljmm_content’ filter
  • Move mode up to the “main” setting area instead of advanced settings
  • From now on, init hook instead of get_header is used for maintenance mode
  • Dedicated method to check if maintenance mode is enabled to make things cleaner
  • Improve current_user_can checks. From codex: current_user_can( $capability ) will aways return true if user is Super Admin, unless specifically denied – see inline source code
  • Update readme
  • Preview mode will now perform capabilities check. (Thanks to @esemlabel)
  • Added Comet Cache support. (Thanks to @doume)
  • Update translation files
  • Updated French translation (Thanks to @doume)

2.2.5

  • Add French translation (Thanks to @doume)

2.2.4

  • Added missing translation strings (Thanks to @doume for reporting this issue)
  • Updated advanced settings toggle (Thanks to @doume for reporting this issue)

2.2.3

  • Updated POT file.(Thanks to @doume for reporting this issue)
  • Corrected typo for w3 total cache warning message. (Thanks to @doume for reporting this issue)

2.2.2

  • Fixed typo in variable ($cache_plugin_enabled). (Thanks to @doume for reporting this issue)

2.2.1

2.2

  • From now on, you can change status code being used while using maintenance mode between 503 (maintenance mode) or 200 (for “coming soon” page)
  • Correct support url
  • General code tidy up

2.1

  • added WPML compatibility
  • added TML (Theme My Login) compatibility
  • Fixed issue where plugin capabilities were not being removed on uninstall
  • Shorten admin bar indicator text, added icon
  • Add support link to the plugins page
  • Minor code tidy up

2.0.4

  • Added Lithuanian translation (Thanks to @gedeminas)

2.0.3

  • Added Spanish Translations. (Thanks to @bcien)
  • Fixed issue where on non English sites admin bar indicator was broken.

2.0.2

  • Fix db prefixing while getting roles. thanks @gablau
  • Further checks improvements regarding problems caused by latest update for some users
  • Add missing function wrapper for translations

2.0.1

  • Improved checks regarding problems caused by latest update for some users

2.0

  • Advanced settings
  • Role Control
  • You can now change title of the site while Maintenance Mode is enabled (in advanced settings)
  • General tidy up of code
  • Fix issue where Jetpack share was appearing in maintenance mode
  • Settings page tidy up and corrections to formatting.

1.4.3

  • Added German (DE) translations. (Thanks to Hoellenwesen)

1.4.2

  • Update Pot file
  • Small adjustments

1.4.1

  • Bug fixes

1.4

  • Bug fixes (Thanks to @gablau)
  • Security fixes – saving content more safely (Thanks to @gablau)
  • Languages: Add Italian (100%) (Thanks to @gablau)
  • Add compatibility while installed along with wp-maintenance-mode @gablau)
  • Code: Avoid duplicating same code and use it as method instead.
  • Code: Tidy up default messages and group them together within method to avoid repeating yourself and also searching all across code in order to change the messages in the future.

1.3.3

  • Improvement: If MM is enabled, added message describing how to check if the maintenance mode is enabled as this was causing lot of confusion and unnecessary support tickets.
  • Improvement: Move preview and support buttons to a more convenient place, also highlight the preview button.
  • Languages: Add Canadian (100%), Hungarian(83%) languages.

1.3.2

  • Fixed: Issue where non admin users could see admin bar indicator.

1.3.1

  • Google is being notified right way from now on.
  • Typo corrections
  • General code tidy up

1.3

  • Translations adjustments and corrections. Plugin is now fully translatable.
  • Small code refactor and tidy up.
  • Correct various typo issues.

1.2.1

  • Bug fixes.
  • Deprecated clear cache functionality as it caused errors to some users. From now on, plugin shows simple reminder to flush cache after enabling or disabling Maintenance Mode.

1.2

  • Improvement: Improved Multisite Support.
  • Improvement: Show default maintenance message in the settings.
  • Improvement: Uninstalling will now clean up database.
  • Improvement: Added support link to the settings page.
  • Improvement: Translatable strings.
  • Improvement: Changed default site title while MM is active.
  • Improvement: Added preview button.
  • Improvement: Added support button.
  • Improvement: Added support for WP Super Cache.
  • Improvement: Added support for W3 Total Cache.
  • Bug Fixes.

1.1.1

  • Bug Fixes.

1.1

  • Added Indicator to Admin menu bar.
  • Added Settings button on plugins page.
  • Added Default maintenance mode message.
  • Bug Fixes.

1.0

  • First release.