Title: Conditionnal Maintenance Mode for WordPress
Author: Walid Sadfi
Published: <strong>2023 年 2 月 28 日</strong>
Last modified: 2025 年 11 月 26 日

---

搜索插件

![](https://ps.w.org/maintenance-mode-based-on-user-roles/assets/banner-772x250.
png?rev=3403393)

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

![](https://ps.w.org/maintenance-mode-based-on-user-roles/assets/icon-256x256.png?
rev=3403393)

# Conditionnal Maintenance Mode for WordPress

 作者：[Walid Sadfi](https://profiles.wordpress.org/evolurise/)

[下载](https://downloads.wordpress.org/plugin/maintenance-mode-based-on-user-roles.2.0.0.zip)

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

 [支持](https://wordpress.org/support/plugin/maintenance-mode-based-on-user-roles/)

## 描述

The Conditionnal Maintenance Mode for WordPress plugin allows the administrator 
to enable or disable maintenance mode for selected user roles. The administrator
can also customize the maintenance message that will be displayed to users who do
not have the necessary roles.

This plugin is useful when you are performing updates or maintenance on your website
and want to limit access to certain users while you work.

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/` directory, or install the
    plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Go to the ‘Maintenance Mode’ settings page in the WordPress admin area to configure
    the plugin.
 4. Configure the plugin options and save the changes.

## 常见问题

### How do I enable maintenance mode?

To enable maintenance mode, go to the ‘Maintenance Mode’ settings page in the WordPress
admin area and select ‘On’ from the ‘Activate the maintenance mode’ dropdown.

### How do I select the user roles that can access the website while maintenance mode is active?

To select the user roles that can access the website while maintenance mode is active,
go to the ‘Maintenance Mode’ settings page in the WordPress admin area and select
the desired roles from the ‘User Roles’ checkbox.

### How do I customize the maintenance message?

To customize the maintenance message, go to the ‘Maintenance Mode’ settings page
in the WordPress admin area and enter your desired message in the ‘Maintenance Message’
field.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Walid Sadfi ](https://profiles.wordpress.org/evolurise/)

[帮助将「Conditionnal Maintenance Mode for WordPress」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/maintenance-mode-based-on-user-roles)

### 对开发感兴趣吗?

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

## 更新日志

#### 2.0.0

 * Major update: Complete security hardening
 * Security fix: Added nonce verification to prevent CSRF attacks (CVE-2025-12586)
 * New feature: Added maintenance page redirect option
 * Enhancement: Added guest/unauthenticated user option
 * Improvement: Better error handling and security practices
 * UI: Removed logo from settings page

#### 1.0.1

 * Security fix: Added nonce verification to prevent CSRF attacks (CVE-2025-12586)
 * Added maintenance page redirect feature
 * Added guest/unauthenticated user option
 * Improved error handling and security

#### 1.0

 * Initial release

## 额外信息

 *  版本 **2.0.0**
 *  最后更新：**11 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **6.7.10**
 *  语言
 * [English (US)](https://wordpress.org/plugins/maintenance-mode-based-on-user-roles/)
 * 标签
 * [custom message](https://cn.wordpress.org/plugins/tags/custom-message/)[maintenance mode](https://cn.wordpress.org/plugins/tags/maintenance-mode/)
   [user roles](https://cn.wordpress.org/plugins/tags/user-roles/)
 *  [高级视图](https://cn.wordpress.org/plugins/maintenance-mode-based-on-user-roles/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/maintenance-mode-based-on-user-roles/reviews/#new-post)

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

## 贡献者

 *   [ Walid Sadfi ](https://profiles.wordpress.org/evolurise/)

## 支持

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

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