Mô tả
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
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.
Cài đặt
- Install via the built-in WordPress plugin installer. Or install the plugin code inside the plugins directory for your site (typically
/wp-content/plugins/
). - Activate the plugin through the ‘Plugins’ admin menu in WordPress
- 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.
Hỏi đáp
-
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”, but I trust “contributors”; can this plugin moderate accordingly?
-
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.
-
Does this plugin include unit tests?
-
Yes.
Đánh giá
Người đóng góp & Lập trình viên
“Never Moderate Registered Users” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng gópDịch “Never Moderate Registered Users” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
2.3.3 (2021-10-05)
- New: Add DEVELOPER-DOCS.md and move hooks documentation into it
- Change: Note compatibility through WP 5.8+
- Change: Tweak installation instruction
- Unit tests:
- Change: Restructure unit test directories
- Change: Move
phpunit/
intotests/
- Change: Move
phpunit/bin
intotests/
- Change: Move
- Change: Remove ‘test-‘ prefix from unit test file
- Change: In bootstrap, store path to plugin file constant
- Change: In bootstrap, add backcompat for PHPUnit pre-v6.0
- Change: Restructure unit test directories
2.3.2 (2021-04-09)
- Change: Note compatibility through WP 5.7+
- Change: Update copyright date (2021)
2.3.1 (2020-08-27)
- Change: Restructure unit test file structure
- New: Create new subdirectory
phpunit/
to house all files related to unit testing - Change: Move
bin/
tophpunit/bin/
- Change: Move
tests/bootstrap.php
tophpunit/
- Change: Move
tests/
tophpunit/tests/
- Change: Rename
phpunit.xml
tophpunit.xml.dist
per best practices
- New: Create new subdirectory
- Change: Note compatibility through WP 5.5+
- Change: Tweak some documentation in readme.txt
- Unit tests: Check if WP is 5.5+ to use renamed option names
Full changelog is available in CHANGELOG.md.