Title: Never Moderate Registered Users
Author: Scott Reilly
Published: <strong>2010 年 9 月 13 日</strong>
Last modified: 2026 年 6 月 29 日

---

搜索插件

![](https://ps.w.org/never-moderate-registered-users/assets/banner-772x250.png?rev
=833712)

![](https://ps.w.org/never-moderate-registered-users/assets/icon-128x128.png?rev
=976002)

# Never Moderate Registered Users

 作者：[Scott Reilly](https://profiles.wordpress.org/coffee2code/)

[下载](https://downloads.wordpress.org/plugin/never-moderate-registered-users.3.0.zip)

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

 [支持](https://wordpress.org/support/plugin/never-moderate-registered-users/)

## 描述

This plugin prevents comments from registered users (or, alternatively, those with
specified capabilities) from ever going into the moderation queue or getting automatically
marked as spam, regardless of the apparent spamminess of the comment.

To be recognized as a registered user, the user must be logged into your site at
the time they post their comment. The plugin applies to front-end submissions and
authenticated REST API requests only; it does not affect comment imports, CLI tools,
cron jobs, or other programmatic creation without a logged-in user.

This plugin assumes that you trust your registered users. It will automatically 
approve any comment made by registered users, even if the comment stinks of spam.
Therefore, it is recommended that you do not allow users to register themselves (
uncheck the setting “Anyone can register” in the WordPress admin under Settings -
> General).

However, when open registration is enabled, the plugin automatically requires users
to have a capability above the site’s default role before their comments bypass 
moderation or spam checks. For example, when the default role is subscriber, users
must have at least the contributor role (which has the `edit_posts` capability).
You can customize this behavior using the ‘c2c_never_moderate_registered_users_open_registration_caps’
filter. See the developer documentation for details.

You can further restrict which users bypass moderation by enabling “Trust only privileged
users to bypass comment moderation and spam checks” on the Settings -> Discussion
admin page. That setting requires users to be able to publish posts or moderate 
comments before their comments bypass moderation or spam checks. You can also use
the ‘c2c_never_moderate_registered_users_caps’ filter to specify trusted roles and
capabilities in custom code. See the FAQ for an example.

This plugin is a partial successor to my now-defunct Never Moderate Admins or Post
Author plugin. The primary purpose of that plugin was to prevent admins and the 
post’s author from being moderated. WordPress eventually integrated that functionality.
However, that plugin also allowed you to prevent registered users from being moderated,
which is still a valid need not directly facilitated by WordPress, thus this plugin
was spun out.

Links: [Plugin Homepage](https://coffee2code.com/wp-plugins/never-moderate-registered-users/)
| [Plugin Directory Page](https://wordpress.org/plugins/never-moderate-registered-users/)
| [GitHub](https://github.com/coffee2code/never-moderate-registered-users/) | [Author Homepage](https://coffee2code.com)

### Developer Documentation

Developer documentation can be found in [DEVELOPER-DOCS.md](https://github.com/coffee2code/never-moderate-registered-users/blob/master/DEVELOPER-DOCS.md).
That documentation covers the numerous hooks provided by the plugin. Those hooks
are listed below to provide an overview of what’s available.

 * `c2c_never_moderate_registered_users_open_registration_caps` : Customize the 
   capabilities required to bypass moderation when open registration is enabled.
 * `c2c_never_moderate_registered_users_privileged_caps` : Customize the capabilities
   that identify privileged users when the Discussion setting is enabled.
 * `c2c_never_moderate_registered_users_caps` : Customize the capabilities that 
   are automatically trusted, any one of which a user must have in order to never
   get moderated.
 * `c2c_never_moderate_registered_users_approved` : Customize granular control for
   whether a comment by a registered user that would otherwise be moderated or marked
   as spam should automatically be approved.
 * `c2c_never_moderate_registered_users_auto_approved` : Fires when the plugin auto-
   approves a comment that would otherwise have been moderated or marked as spam.

## 安装

 1. Install via the built-in WordPress plugin installer. Or install the plugin code
    inside the plugins directory for your site (typically `/wp-content/plugins/`).
 2. Activate the plugin through the ‘Plugins’ admin menu in WordPress
 3. Optional: Enable “Trust only privileged users to bypass comment moderation and 
    spam checks” on the Settings -> Discussion admin page if you want to limit the 
    feature to users who can publish posts or moderate comments.
 4. Optional: Use one or more of the provided hooks in custom code to control specific
    capabilities that should be exempted from moderation and spam or to control the
    feature on a comment-by-comment basis.

## 常见问题

### Hey, why did I get some obvious spam from a registered user?

This plugin assumes that any comment made by a registered user (or a user with a
specified capabilities) is not spam, regardless of the spamminess of their comment.
If you don’t trust your registered users you probably shouldn’t have this plugin
activated. Or at least follow the directions above to increase the minimum threshold
for trusted users.

### I don’t trust registered users who are just “subscribers”. Can this plugin accommodate a stricter standard of trust?

Yes. The plugin itself adjusts the minimum trust level if open registration is enabled.
And regardless of that, there is an admin setting to easily facilitate stricter 
trust, and an offered filter for more programmatic customization.

 * When open registration is enabled, users must exceed the site’s default registration
   role before bypassing moderation (for example, only contributors or higher are
   trusted when the default role is subscriber).
 * To limit the feature to users who can publish posts or moderate comments, enable“
   Trust only privileged users to bypass comment moderation and spam checks” on 
   the Settings -> Discussion admin page.
 * The ‘c2c_never_moderate_registered_users_caps’ filter allows programmatic customization
   of the specific capabilities or roles to trust. See the developer documentation
   for examples.

### Does this plugin have unit tests?

Yes. The tests are not packaged in the release .zip file or included in plugins.
svn.wordpress.org, but can be found in the [plugin’s GitHub repository](https://github.com/coffee2code/never-moderate-registered-users/).

## 评价

![](https://secure.gravatar.com/avatar/0427028d01a8df2129cf2184770ea99ceb1471ec204a890bf33ea23c56b89d5c?
s=60&d=retro&r=g)

### 󠀁[Do exactly what it say](https://wordpress.org/support/topic/do-exactly-what-it-say/)󠁿

 [Marco Buttarini](https://profiles.wordpress.org/webgrafia/) 2024 年 1 月 30 日

I love this minimal plugins that do exactly what is expected, without unuseful stuff.
Is incredible that this small feature is not natively supported by WordPress

![](https://secure.gravatar.com/avatar/8e347c269dd56567539edb0eab14d6e7792d4b1a7a0ca048e0742fafeb707c6b?
s=60&d=retro&r=g)

### 󠀁[Programmeur uniquement](https://wordpress.org/support/topic/programmeur-uniquement/)󠁿

 [patprov](https://profiles.wordpress.org/patprov/) 2018 年 6 月 1 日 3 回复

J'ai beau chercher, mais vu que tout ramène à du php, je pense que ce plugin est
destiné aux programmeurs d'autres plugin. Pour un utilisateur lambda, autant intaller
un distributeur de barbe à papa sur votre site, vous obtiendrez la même chose….rien.

 [ 阅读所有3条评价 ](https://wordpress.org/support/plugin/never-moderate-registered-users/reviews/)

## 贡献者及开发者

「Never Moderate Registered Users」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Scott Reilly ](https://profiles.wordpress.org/coffee2code/)

[帮助将「Never Moderate Registered Users」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/never-moderate-registered-users)

### 对开发感兴趣吗?

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

## 更新日志

#### 3.0 (2026-06-19)

Highlights:

This recommended major release adds a setting to enable only trusting privileged
users, requires stricter trust for open registration sites, adds an action that 
fires when the plugin overrides comment approval, disables handling of programmaticly
created comments (CLI, import, etc), namespaces and restructures the plugin code,
notes compatibility through WP 7.0+, drops compatibility with versions of WP older
than 6.0, bumps minimum PHP support to 8.0, and more.

Details:

 * Change: Don’t consider the default role on open registration sites as trusted
    - When open registration is enabled, require a minimum capability above the 
      site’s default role before bypassing moderation or spam checks
    - Closed registration sites are unaffected
 * New: Add `c2c_never_moderate_registered_users_open_registration_caps` filter 
   to customize open registration trust requirements
 * New: Add “Trust only privileged users” checkbox to Settings > Discussion
    - Requires the `publish_posts` or `moderate_comments` capability before bypassing
      moderation or spam checks
    - Replaces default trust behavior, including the open registration minimum capability,
      when enabled
 * New: Add `c2c_never_moderate_registered_users_privileged_caps` filter to customize
   privileged user capabilities
 * New: Add `c2c_never_moderate_registered_users_auto_approved` action that fires
   when a comment is auto-approved by the plugin
 * Change: Limit auto-approval
    - Process front-end and authenticated REST API requests (as always)
    - Now ignore import, CLI, cron, and other programmatic creation without a session;
      default WP handling will apply
 * Change: Ensure the comment’s `user_id` matches the logged-in user
 * New: Add function to get the version of the plugin
 * Fix: Correctly check for user existence
 * Change: Reorganize plugin into namespaced classes under `includes/`
    - `Trust_Policy` for capability and trust logic
    - `Comment_Moderator` for the `pre_comment_approved` filter
    - `Admin_Settings` for the Discussion settings UI
    - `Hooks` and `Options` for hook and option name constants
 * Change: Remove global helper functions and `function_exists()` guards
 * Change: Use `exit` instead of `die()` when bailing on direct file invocation
 * Change: Tweak extended description in `readme.txt`
 * Change: Document that `c2c_never_moderate_registered_users_approved` may run 
   twice per front-end submission since WP 6.7
 * Change: Note compatibility through WP 7.0+
 * Change: Drop compatibility for WordPress versions older than 6.0
 * Change: Require at least PHP 8.0+ and note compatibility through PHP 8.5+
 * Change: Add ‘Requires at least’ and ‘Requires PHP’ headers to main plugin file
 * Change: Update copyright date (2026)
 * Change: Remove unused global
 * Change: Fix minor documentation typos or omissions

#### 2.3.6 (2025-04-14)

 * Change: Note compatibility through WP 6.8+
 * Change: Note compatibility through PHP 8.3+
 * Change: Update copyright date (2025)

#### 2.3.5 (2024-08-21)

 * Change: Shorten plugin description
 * Change: Note compatibility through WP 6.6+
 * Change: Update copyright date (2024)
 * Change: Reduce number of ‘Tags’ from `readme.txt`
 * Change: Remove development and testing-related files from release packaging

_Full changelog is available in [CHANGELOG.md](https://github.com/coffee2code/never-moderate-registered-users/blob/master/CHANGELOG.md)._

## 额外信息

 *  版本 **3.0**
 *  最后更新：**4 月前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.0.8**
 *  PHP 版本 ** 8.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/never-moderate-registered-users/)
 * 标签
 * [comment](https://cn.wordpress.org/plugins/tags/comment/)[moderation](https://cn.wordpress.org/plugins/tags/moderation/)
   [spam](https://cn.wordpress.org/plugins/tags/spam/)[subscribers](https://cn.wordpress.org/plugins/tags/subscribers/)
   [users](https://cn.wordpress.org/plugins/tags/users/)
 *  [高级视图](https://cn.wordpress.org/plugins/never-moderate-registered-users/advanced/)

## 评级

 4.3 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/never-moderate-registered-users/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/never-moderate-registered-users/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/never-moderate-registered-users/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/never-moderate-registered-users/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/never-moderate-registered-users/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/never-moderate-registered-users/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/never-moderate-registered-users/reviews/)

## 贡献者

 *   [ Scott Reilly ](https://profiles.wordpress.org/coffee2code/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/never-moderate-registered-users/)

## 捐助

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

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6ARCFJ9TX3522)