Never moderate or mark as spam comments made by registered users (or, alternatively, those with specified capabilities), regardless of the apparent sp …
This plugin prevents comments from registered users 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.
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).
You can still allow open registration, whereby these “subscribers” are moderated as usual, while other more privileged users do not get moderated. The plugin provides a filter, ‘c2c_never_moderate_registered_users_caps’, which allows you to specify the roles and capabilities that can bypass moderation. See the FAQ for an example.
This plugin is a partial successor to my now-defunct Never Moderate Admins or Post Author plugin. In addition to preventing admins and the post’s author from being moderated, that plugin also allowed you to prevent registered users from being moderated. WordPress has long since integrated that functionality, so the main thrust of that plugin became moot. However, the ability to never moderate registered users is still a valid need that requires this plugin.
Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage
Developer documentation can be found in 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_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./wp-content/plugins/
).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.
Yes. You can specify the capabilities and roles that can bypass moderation. See the example provided for the ‘c2c_never_moderate_registered_users_caps’ filter.
Yes.
.gitignore
filecomposer.json
for PHPUnit Polyfill dependencyphpunit/
into tests/
phpunit/bin
into tests/
Full changelog is available in CHANGELOG.md.