Comment Moderation Role by WPBeginner

August 02, 2022

Comment Moderation Role by WPBeginner Plugin

Add a new comment moderator user role to your site.

Comment Moderation Role by WPBeginner

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.

How Do I Create a Comment Moderator User?

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.

Credits

Comment Moderation Role is created by the WPBeginner team.

What’s Next?

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:

  • OptinMonster – Get More Email Subscribers with the most popular conversion optimization plugin for WordPress.
  • WPForms – #1 drag & drop online form builder for WordPress (trusted by 4 million sites).
  • MonsterInsights – See the Stats that Matter and Grow Your Business with Confidence. Best Google Analytics Plugin for WordPress.
  • SeedProd – Create beautiful landing pages with our powerful drag & drop landing page builder.
  • WP Mail SMTP – Improve email deliverability for your contact form with the most popular SMTP plugin for WordPress.
  • RafflePress – Best WordPress giveaway and contest plugin to grow traffic and social followers.
  • Smash Balloon – #1 social feeds plugin for WordPress – display social media content in WordPress without code.
  • AIOSEO – the original WordPress SEO plugin to help you rank higher in search results (trusted by over 2 million sites).
  • PushEngage – Connect with visitors after they leave your website with the leading web push notification plugin.
  • TrustPulse – Add real-time social proof notifications to boost your store conversions by up to 15%.

Visit WPBeginner to learn from our WordPress Tutorials and find out about other best WordPress plugins.

Installation

  1. Install the Comment Moderation Role plugin by uploading the comment-moderation-role directory to the /wp-content/plugins/ directory. (See instructions on how to install a WordPress plugin.)
  2. Activate Comment Moderation Role through the Plugins menu in WordPress.

FAQ

How is this different from WordPress’s moderate_comments permission?

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.

Are there filters for developers?

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'; } ); 

Changelog

1.1.1

  • Misc: Internal documentation updates.
  • Misc: The plugin is tested up to WordPress 6.0.

1.1.0

  • Fix: Ensure replying to comments via the moderation screen links the comment to a post.

Details

  • Version: 1.1.1
  • Active installations: 300
  • WordPress Version: 5.1
  • Tested up to: 6.0.9
  • PHP Version: 5.6

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars