[wordpress插件] BEAPI – Maintenance ModeBEAPI-维护模式

wordpress 插件 文章 2020-03-02 11:30 621 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

This simple and lightweight WordPress maintenance plugin puts the site into maintenance mode.

这个简单而轻巧的WordPress维护插件将网站置于维护模式。

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.

–通过向所有未经身份验证的客户端发送“ 503服务不可用”状态,不会影响您的SEO。

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.

网站的RSS或Atom订阅源的使用者甚至可以隐藏内容。

– 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

IP白名单

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.

因此,您可以向项目(mu-plugins)中添加文件以指定要列入白名单的IP范围。

At the agency we use it with our VPN IP.

在代理商中,我们将其与我们的VPN IP配合使用。

Please find an example of implementation on the following

请在以下中找到实现示例

github;

github ;

Customize the maintenance mode template

自定义维护模式模板

By default it is the file located in the templates folder : maintenance.php

“> maintenance.php

But you can customize this template using the following implementation on github, with a custom template placed wherever you want.

“> github ,并在您需要的位置放置自定义模板。

Composer

作曲家

It is possible to activate the plugin by composer wp plugin activate beapi-maitenance-mode [--network]

可以通过作曲家激活插件 wp插件激活beapi-maitenance-mode [--network]

If you are a developer and the plugin is not installed, you could also just use a dedicated composer command

如果您是开发人员,但未安装该插件,则也可以使用专用作曲家命令

a>.

a>。

Who ?

谁?

Created by Be API, the French WordPress leader agency since 2009. Based in Paris, we are more than 30 people and

Be API 创建,该API自2009年以来一直是法国WordPress的领导机构。总部位于巴黎,我们有30多人,

always hiring 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 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.

为方便提交问题和更快地回答问题,我们仅使用Github,因此不使用WP.Org支持,将不予考虑。

安装步骤

Requirements

要求

    • Tested up to 4.9.8
    • 经过测试,最高可达4.9.8

    • PHP 5.6+
    • PHP 5.6 +

    WordPress

    WordPress

      • Download and install using the built-in WordPress plugin installer.
      • 使用内置的WordPress插件安装程序下载并安装。

      • Site activate in the “Plugins” area of the admin.
      • 在管理员的“插件”区域中激活网站。

下载地址
https://downloads.wordpress.org/plugin/beapi-maintenance-mode.1.0.5.zip
-EOF-

AI助手支持GPT4.0