-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
49 lines (34 loc) · 1.24 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
=== Plugin Name ===
Contributors: kmvan
Tags: maintenance
Requires at least: 4.9.9
Tested up to: 5.9.99
Requires PHP: 7.3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
> 开启站点维护模式。
> Enable site maintenance-mode.
## Custom remote page 自定义远程页面
> Add code into `wp-config.php` file:
> 添加以下代码到 `wp-config.php` 文件:
```php
\define('INN_MAINTENANCE_MODE_REMOTE_URL', 'https://YOUR_DOMAIN/PAGE.html');
```
## Custom server location page 自定义服务器本地页面
> Create a new file and name `maintenance` in WordPress root dir.
> 在 `WordPress` 根目录里创建一个新文件并且命名为 `maintenance`。
## Custom refresh minutes 自定义刷新分钟数
> Add code into `wp-config.php` file:
> 添加以下代码到 `wp-config.php` 文件:
```php
\define('INN_MAINTENANCE_MODE_REFRESH_MINUTES', 5);
```
== Description ==
> 开启站点维护模式。
> Enable site maintenance-mode.
== Installation ==
> 上传插件到 `/wp-content/plugins/` 目录后并在 WP 后台启用即可。
> Upload to the `/wp-content/plugins/` directory and ENABLE it.
== Changelog ==
- 2020-04-16 5.0.0 调整显示样式
- 2020-04-16 4.0.3 增强管理员令牌登录兼容性