Title: BEAPI &#8211; Maintenance Mode
Author: BE API
Published: <strong>2018 年 11 月 5 日</strong>
Last modified: 2019 年 4 月 2 日

---

搜索插件

![](https://ps.w.org/beapi-maintenance-mode/assets/banner-772x250.jpg?rev=1969007)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/beapi-maintenance-mode/assets/icon-256x256.png?rev=1969007)

# BEAPI – Maintenance Mode

 作者：[BE API](https://profiles.wordpress.org/beapi/)

[下载](https://downloads.wordpress.org/plugin/beapi-maintenance-mode.1.0.5.zip)

 * [详情](https://cn.wordpress.org/plugins/beapi-maintenance-mode/#description)
 * [评价](https://cn.wordpress.org/plugins/beapi-maintenance-mode/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/beapi-maintenance-mode/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/beapi-maintenance-mode/#developers)

 [支持](https://wordpress.org/support/plugin/beapi-maintenance-mode/)

## 描述

This simple and lightweight WordPress maintenance plugin puts the site into maintenance
mode. The major advantage, compared to existing plugins, is that there are no options,
it is ready to use!

It was think, while in maintenance mode, to :
 – Not impact your SEO by sending 
a ‘503 Service Unavailable’ status to all unauthenticated clients. This means that
it will inhibits search engines from both losing your site’s existing content and
indexing your maintenance page as well, so your site will not lose its rankings 
while it is out of service. Content will even be hidden from consumers of the site’s
RSS or Atom feeds. – Make continually work the login/loggout process. – It handle
the _activate process in multisite_, which a lot of existing plugins don’t. – If
people are logged in they will have the site displayed as normal/expected.

### How ?

We would like to precise that this plugin is simple as pie, anyone can use it but
still dev-oriented. The idea is to not have a bunch of options to set before using
it, in fact not only one! Because, it is a really pain when working on a multisite.

That is why there as still two filter for developers, which come in the section 
below.

### IPs whitelist

In certain conditions, it is useful to not trigger the maintenance mode. That’s 
why you can add a file to your project (mu-plugins) to specify a range of IPs to
whitelist. At the agency we use it with our VPN IP.
 Please find an example of implementation
on the following [github](https://github.com/BeAPI/bea-plugin-defaults/blob/master/default-beapi-maintenance-mode.php);

### Customize the maintenance mode template

By default it is the file located in the templates folder : [maintenance.php](https://github.com/BeAPI/beapi-maintenance-mode/blob/master/templates/maintenance.php)

But you can customize this template using the following implementation on [github](https://github.com/BeAPI/bea-plugin-defaults/blob/master/default-beapi-maintenance-mode.php),
with a custom template placed wherever you want.

### Composer

It is possible to activate the plugin by composer `wp plugin activate beapi-maitenance-
mode [--network]`
 If you are a developer and the plugin is not installed, you could
also just use a [dedicated composer command](https://github.com/BeAPI/composer-go-maintenance).

### Who ?

Created by [Be API](https://beapi.fr), the French WordPress leader agency since 
2009. Based in Paris, we are more than 30 people and always [hiring](https://beapi.workable.com)
some fun and talented guys. So we will be pleased to work with you.

This plugin is only maintained, which means we do not guarantee some free support.
Consider reporting an [issue](https://github.com/BeAPI/bea-media-analytics/issues)
and be patient.

To facilitate the process of submitting an issue and quicker answer, we only use
Github, so don’t use WP.Org support, it will not be considered.

## 屏幕截图

[⌊BEAPI Maintenance Mode triggered on site display.⌉⌊BEAPI Maintenance Mode triggered
on site display.⌉[

BEAPI Maintenance Mode triggered on site display.

## 安装

 Requirements

 * Tested up to 4.9.8
 * PHP 5.6+

 WordPress

 * Download and install using the built-in WordPress plugin installer.
 * Site activate in the “Plugins” area of the admin.

## 常见问题

  Do I have something to configure ?

No.

That is the main “feature” of this plugin. It is ready to use and it is pretty useful
when working with multisite.

  Can I use into a multisite ?

Yes.

You just need to activate on each site or network wide, depending on the needs.

  How can I add my IPs to whitelist ?

Just follow the referring note into the plugin documentation.

  How can I change the template displayed in case of maintenance ?

Just follow the referring note into the plugin documentation.

## 评价

此插件暂无评价。

## 贡献者及开发者

「BEAPI – Maintenance Mode」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ BE API ](https://profiles.wordpress.org/beapi/)
 *   [ Maxime Culea ](https://profiles.wordpress.org/maximeculea/)
 *   [ Nicolas Juen ](https://profiles.wordpress.org/rahe/)
 *   [ rlefort ](https://profiles.wordpress.org/rlefort/)

「BEAPI – Maintenance Mode」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/beapi-maintenance-mode/contributors)
为本插件所做的贡献。

[帮助将「BEAPI – Maintenance Mode」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/beapi-maintenance-mode)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/beapi-maintenance-mode/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/beapi-maintenance-mode/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/beapi-maintenance-mode/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/beapi-maintenance-mode/)。

## 更新日志

#### 1.0.5 – 02 Apr 2019

 * Add [#8](https://github.com/BeAPI/beapi-maintenance-mode/issues/8) : filter is
   maintenance mode helper for handle custom behaviour.

#### 1.0.4 – 06 Nov 2018

 * Pimp my html

#### 1.0.3 – 05 Nov 2018

 * Released on wp.org

#### 1.0.1 – 02 Nov 2018

 * Add [#2](https://github.com/BeAPI/beapi-maintenance-mode/issues/2) : customize
   the maintenance mode template.
 * Add [#1](https://github.com/BeAPI/beapi-maintenance-mode/issues/1) : add whitelisted
   IPs.
 * Add [#4](https://github.com/BeAPI/beapi-maintenance-mode/issues/4) : implement
   maintenance mode to not disturb the wp-activate process.

#### 1.0.0 – 02 Nov 2018

 * First release

## 额外信息

 *  版本 **1.0.5**
 *  最后更新：**7 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 4.7 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/beapi-maintenance-mode/) 和 [French (France)](https://fr.wordpress.org/plugins/beapi-maintenance-mode/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/beapi-maintenance-mode)
 * 标签
 * [503](https://cn.wordpress.org/plugins/tags/503/)[admin](https://cn.wordpress.org/plugins/tags/admin/)
   [development](https://cn.wordpress.org/plugins/tags/development/)[maintenance](https://cn.wordpress.org/plugins/tags/maintenance/)
   [under construction](https://cn.wordpress.org/plugins/tags/under-construction/)
 *  [高级视图](https://cn.wordpress.org/plugins/beapi-maintenance-mode/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/beapi-maintenance-mode/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/beapi-maintenance-mode/reviews/)

## 贡献者

 *   [ BE API ](https://profiles.wordpress.org/beapi/)
 *   [ Maxime Culea ](https://profiles.wordpress.org/maximeculea/)
 *   [ Nicolas Juen ](https://profiles.wordpress.org/rahe/)
 *   [ rlefort ](https://profiles.wordpress.org/rlefort/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/beapi-maintenance-mode/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://paypal.me/BeAPI)