Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kmvan/inn-maintenance-mode
🐘 INN maintenance-mode WordPress plugin (维护模式插件)
https://github.com/kmvan/inn-maintenance-mode
wordpress-development wordpress-plugin
Last synced: about 1 month ago
JSON representation
🐘 INN maintenance-mode WordPress plugin (维护模式插件)
- Host: GitHub
- URL: https://github.com/kmvan/inn-maintenance-mode
- Owner: kmvan
- License: gpl-2.0
- Created: 2018-08-07T07:44:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-29T08:03:38.000Z (almost 3 years ago)
- Last Synced: 2024-03-03T09:37:33.860Z (10 months ago)
- Topics: wordpress-development, wordpress-plugin
- Language: PHP
- Homepage: https://inn-studio.com/inn-maintenance-mode
- Size: 19.5 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# INN Maintenance Mode
## Requires 环境
* Requires WordPress: 4.9.9
* Tested up to WordPress: 5.9.99
* Requires PHP: 7.3.0## Usage 使用
> 开启站点维护模式。
> Enable site maintenance-mode.
>
> More tips: https://inn-studio.com/inn-maintenance-mode## Description 描述
> 开启站点维护模式。
> Enable site maintenance-mode.## Installation 安装
> 上传插件到 `/wp-content/plugins/` 目录后并在 WP 后台启用即可。
> Upload to the `/wp-content/plugins/` directory and ENABLE it.## 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);
```