Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

Maintenance Mode

Описание

Работая с WordPress почти каждый день, я часто сталкивался с необходимостью иметь простой плагин для режима обслуживания, чтобы делать обновления на своем сайте или сайте клиента. И я перепробовал все эти бесполезные и сверхсложные плагины, пока не решил сделать такое плагин самостоятельно. Плагин, в котором я буду уверен и которым буду пользоваться легко и с удовольствием.

Режим Обслуживания очень прост. Плагин использует встроенную функцию WordPress wp_die(), что позволяет этому плагину быть и работать как часть основного WordPress. Включить режим обслуживания или изменить содержание страницы можно на странице настроек («Настройки» в основном административном меню), где можно использовать WYSIWYG редактор для добавления рисунков, ссылок и т.п. При включенном режиме обслуживания, если Вы залогинились как администратор, Вы будете видеть сайт как обычно, но остальные посетители будут видеть страницу режима обслуживания. Как администратор, Вы можете проверить работу плагина и посмотреть страницу режима обслуживания, используя ссылку Предпросмотр или просто открыв сайт в приватном режиме или другом браузере. Есть также индикатор в верхней панели администратора, который меняет свой цвет на красный при включенном режиме обслуживания.

Особенности:

  • 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.
  • Обновления — Регулярные обновления и обслуживание.
  • Support — Support button available.
  • Preview — Preview button available.
  • Компактный — Разрабатывался, чтобы быть максимально компактным.
  • Управление ролями — Управление ролями пользователей доступно с версии 2.0
  • Optional widgets — Optionally add widgets above and/or below the content
  • Optional style sheet — Optionally add a custom style sheet
  • Optional ability to add code snippet — Optionally add a code snippet to the page.
  • Support for Analytify plugin — If you use the Analytify plugin, you can automatically insert the Google Analytics tracking code.

Важно! Пользователи, использующие кэширующие плагины, пожалуйста, читайте примечание ниже:
При включении или выключении плагина Режим Обслуживания не забудьте очистить кэш!

Filters
ljmm_site_title — Filter page title while in maintenance mode

ljmm_admin_bar_indicator_enabled - Control visibility of admin bar indicator

limm_css_filename - The filename of the CSS style sheet (as found in the theme's stylesheet directory) - just the filename, for example: `maintenance.min.css`. (Note: you do not need to use this filter for a stylesheet; see FAQs below.)

ljmm_css_url - The url of the css file.

Actions
ljmm_before_mm — Runs at the beginning of core maintenance method

Встретили проблему? Пожалуйста, прежде всего прочитайте FAQ (ЧАВО). Если Вам нужна какая-либо помощь, Вы можете использовать кнопку поддержки на странице настроек Режима обслуживания.

Разработка на GitHub
Разработка плагина «Режим обслуживания» происходит на GitHub. Запросы на исправление ошибок и внесение изменений приветствуются.

Скриншоты

  • Example with default message.
  • Admin Bar Indicator (Red when active)
  • Settings page in admin view with default message.
  • Страница настроек в панели администратора (с расширенными настройками)
  • Example with image and link.
  • Custom stylesheet
  • Example: Custom stylesheet in root theme folder with sample styling
  • Example using widgets (meta)
  • Widgets area with two maintenance mode widget areas (before and after)

Установка

  1. Скопируйте lj-maintenance-mode в директорию /wp-content/plugins/
  2. Активируйте плагин, используя меню ‘Плагины’ в WordPress
  3. Перейдите в Настройки -> Режим обслуживания или просто кликните на индикаторе в верхней панели администратора, чтобы включить режим обслуживания.

Часто задаваемые вопросы

Плагин похоже не работает. Что я должен предпринять?

Во-первых, если Вы используете какие-либо кэш плагины, такие как WP Super Cache или W3 Total Cache, полностью очистите ваш кэш. Во-вторых, отключите все остальные плагины и попробуйте включить только плагин Режим Обслуживания, чтобы посмотреть осталась ли проблема. Это должно решить большинство обычных проблем. Если же нет, свяжитесь со мной, используя кнопку Support на странице настроек.

Могу ли я изменить цвет фона?

Not through the admin interface. You can use a custom stylesheet (see next FAQ) to do this, however.

What is the default stylesheet?

By default, the plugin will use a stylesheet named maintenance.min.css in the theme’s stylesheet folder. You can specify a different filename by using a Filter (above).

How do I add widgets?

Click «Advanced Settings» and mark the checkbox to add widget areas. Then you will find two new widget areas in WordPress’s Widgets page, for above and below the content.

Отзывы

23.03.2022
I have used this outstanding plugin for years. It is simple with no bloatware or nag screens. Does exactly what I need. Thank you for this plugin Lukas. Please consider updating if you have time. (I find it not working with the latest WP theme 2022-03-23)
19.01.2022
... a non-bloated, hassle-free maintenance plugin. Thank you.
24.02.2020
Some people are saying this plugin no longer works. That is not true. The plugin works fine and is still (as far as I know) the best 'maintenance mode' plugin for WordPress. In order to use it, install and activate. In the WP Admin Bar (the top bar that runs across the WP admin when you're signed in) you'll see a hammer with the word 'disabled' next to it. Click the disabled word which will take you to the plugin settings page. Adjust your copy and check the 'enabled' checkbox at the top of the settings page. Then scroll to the bottom of the page and 'Save Changes'. Since you're an admin in WP, YOU WILL NOT SEE THE MAINTENANCE PAGE! If you want to review the maintenance page to confirm it's working, either sign-out of WP and visit your home page OR open a different browser which doesn't share the logged in state Hope this helps and many thanks to Lukas for creating an awesome and simple maintenance mode plugin for WP. This functionality should be core to WP!
Посмотреть все 63 отзыва

Участники и разработчики

«Maintenance Mode» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

«Maintenance Mode» переведён на 11 языков. Благодарим переводчиков за их работу.

Перевести «Maintenance Mode» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

2.4.4

  • Bumped up «Tested up to»

2.4.3

  • Added support for older PHP versions as per pre-2.4

2.4.2

  • Add workaround capability management to support user role and capabilities plugins by using delete_plugins capability for super admins and ljmm_control for rest of the users

2.4.1

  • Merge capabilities handling, tidy up and potentially fix capabilities issues some of the users have experienced

2.4

  • More customisable than ever!
  • Added support for stylesheet, widgets and code snippet injection (Thanks to Eric Mueller at @switchplus)
  • Custom capability (Thanks to @gabrielbijleveld)
  • Code refactor and improvements
  • Overall tidy up of the code
  • Update broken support link
  • Added shortcode support (Plugins like Contact Form 7 will work from now on)
  • New icons and banners

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 maintenance 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.