Add a new comment moderator user role to your site.
This comment moderation plugin improves the comment moderation permissions on your WordPress site.
The new role “WPB Comment Moderator” is created on your site to allow you to give users access only to the comment moderation screen. Unlike the WordPress default settings, a comment moderator is not required to be able to author posts, so you can keep your content secure.
The Comment Moderator can approve, decline, or edit any comments on any post.
This plugin also allows your Authors and Contributors to moderate comments on the posts they wrote. That means your guest authors can continue interacting with their readers, without getting access to other articles or comments.
Once this plugin is activated, simply edit a user’s profile and change their role to WPB Comment Moderator. This will grant them access only to the comment moderation screens within WordPress, keeping the rest of your site secure.
Comment Moderation Role is created by the WPBeginner team.
To learn more about WordPress, you can visit WPBeginner for tutorials on topics like:
…and many more WordPress tutorials.
If you like our Comment Moderator Role plugin, then consider checking out our other projects:
Visit WPBeginner to learn from our WordPress Tutorials and find out about other best WordPress plugins.
comment-moderation-role
directory to the /wp-content/plugins/
directory. (See instructions on how to install a WordPress plugin.)Plugins
menu in WordPress.In order to moderate all comments, WordPress requires the user have permission to both edit posts and moderate comments. This plugin removes the requirement for a user to have both permissions.
Yes, the roles and capabilities used by this plugin can be modified by filters.
Filters should be run prior to the plugins_loaded
hook running. As a result they can not be added to a theme’s functions.php file.
The default moderator capability is Core’s moderate_comments
. This can be replaced with any string using the filter wpb.comment_moderation_role.moderator_cap
.
Example:
<?php add_filter( 'wpb.comment_moderation_role.moderator_cap', function() { return 'wpb_moderate_comments'; } );
The default moderator role is displayed in the admin as WPB Comment Moderator
. This can be replaced with any string using the filter wpb.comment_moderation_role.moderator_role_name
.
Example:
<?php add_filter( 'wpb.comment_moderation_role.moderator_role_name', function() { return 'WPB Support Staff'; } );
The default moderator role’s slug is wpb_comment_moderator
. This can be replaced with any string using the filter wpb.comment_moderation_role.moderator_role_slug
.
Example:
<?php add_filter( 'wpb.comment_moderation_role.moderator_role_slug', function() { return 'wpb_support_staff'; } );