{"id":142970,"date":"2021-07-14T23:33:06","date_gmt":"2021-07-14T23:33:06","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/comment-moderation-role\/"},"modified":"2026-03-16T14:37:39","modified_gmt":"2026-03-16T14:37:39","slug":"comment-moderation-role","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/comment-moderation-role\/","author":558244,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.2","stable_tag":"1.1.2","tested":"6.9.4","requires":"5.1","requires_php":"5.6","requires_plugins":null,"header_name":"Comment Moderation Role","header_author":"WPBeginner","header_description":"A comment moderation role for WordPress sites.","assets_banners_color":"fff8ed","last_updated":"2026-03-16 14:37:39","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wpbeginner.com","header_author_uri":"https:\/\/wpbeginner.com","rating":3.7,"author_block_rating":0,"active_installs":200,"downloads":5223,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"peterwilsoncc","date":"2021-07-14 23:45:00"},"1.1.0":{"tag":"1.1.0","author":"peterwilsoncc","date":"2021-08-29 22:54:01"},"1.1.1":{"tag":"1.1.1","author":"justinahinon","date":"2022-08-02 13:30:53"},"1.1.2":{"tag":"1.1.2","author":"iv.dimova","date":"2026-03-16 14:37:39"}},"upgrade_notice":[],"ratings":{"1":1,"2":0,"3":0,"4":0,"5":2},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2590584,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2590584,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2590584,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2590584,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.1.0","1.1.1","1.1.2"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1913,6074,107,1915],"plugin_category":[44],"plugin_contributors":[82825,77612],"plugin_business_model":[],"class_list":["post-142970","plugin","type-plugin","status-publish","hentry","plugin_tags-capabilities","plugin_tags-comment-moderation","plugin_tags-comments","plugin_tags-roles","plugin_category-discussion-and-community","plugin_contributors-peterwilsoncc","plugin_contributors-smub","plugin_committers-ivdimova","plugin_committers-smub","plugin_committers-tommcfarlin","plugin_committers-wpbeginner"],"banners":{"banner":"https:\/\/ps.w.org\/comment-moderation-role\/assets\/banner-772x250.png?rev=2590584","banner_2x":"https:\/\/ps.w.org\/comment-moderation-role\/assets\/banner-1544x500.png?rev=2590584","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/comment-moderation-role\/assets\/icon-128x128.png?rev=2590584","icon_2x":"https:\/\/ps.w.org\/comment-moderation-role\/assets\/icon-256x256.png?rev=2590584","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<h3>Comment Moderation Role by WPBeginner<\/h3>\n\n<p>This comment moderation plugin improves the comment moderation permissions on your WordPress site.<\/p>\n\n<p>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.<\/p>\n\n<p>The Comment Moderator can approve, decline, or edit any comments on any post.<\/p>\n\n<p>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.<\/p>\n\n<h3>How Do I Create a Comment Moderator User?<\/h3>\n\n<p>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.<\/p>\n\n<h3>Credits<\/h3>\n\n<p>Comment Moderation Role is created by the <a href=\"https:\/\/www.wpbeginner.com\/\" rel=\"friend\">WPBeginner<\/a> team.<\/p>\n\n<h3>What's Next?<\/h3>\n\n<p>To learn more about WordPress, you can visit <a href=\"https:\/\/www.wpbeginner.com\/\" rel=\"friend\">WPBeginner<\/a> for tutorials on topics like:<\/p>\n\n<ul>\n<li><a href=\"http:\/\/www.wpbeginner.com\/wordpress-performance-speed\/\" rel=\"friend\" title=\"Ultimate Guide to WordPress Speed and Performance\">WordPress Speed and Performance<\/a><\/li>\n<li><a href=\"http:\/\/www.wpbeginner.com\/wordpress-security\/\" rel=\"friend\" title=\"Ultimate WordPress Security Guide\">WordPress Security<\/a><\/li>\n<li><a href=\"http:\/\/www.wpbeginner.com\/wordpress-seo\/\" rel=\"friend\" title=\"Ultimate WordPress SEO Guide for Beginners\">WordPress SEO<\/a><\/li>\n<\/ul>\n\n<p>...and many more <a href=\"http:\/\/www.wpbeginner.com\/category\/wp-tutorials\/\" rel=\"friend\" title=\"WordPress Tutorials\">WordPress tutorials<\/a>.<\/p>\n\n<p>If you like our Comment Moderator Role plugin, then consider checking out our other projects:<\/p>\n\n<ul>\n<li><a href=\"https:\/\/optinmonster.com\/\" rel=\"friend\">OptinMonster<\/a> \u2013 Get More Email Subscribers with the most popular conversion optimization plugin for WordPress.<\/li>\n<li><a href=\"https:\/\/wpforms.com\/\" rel=\"friend\">WPForms<\/a> \u2013 #1 drag &amp; drop online form builder for WordPress (trusted by 4 million sites).<\/li>\n<li><a href=\"https:\/\/www.monsterinsights.com\/\" rel=\"friend\">MonsterInsights<\/a> \u2013 See the Stats that Matter and Grow Your Business with Confidence. Best Google Analytics Plugin for WordPress.<\/li>\n<li><a href=\"https:\/\/www.seedprod.com\/\" rel=\"friend\">SeedProd<\/a> \u2013 Create beautiful landing pages with our powerful drag &amp; drop landing page builder.<\/li>\n<li><a href=\"https:\/\/wpmailsmtp.com\/\" rel=\"friend\">WP Mail SMTP<\/a> \u2013 Improve email deliverability for your contact form with the most popular SMTP plugin for WordPress.<\/li>\n<li><a href=\"https:\/\/rafflepress.com\/\" rel=\"friend\">RafflePress<\/a> \u2013 Best WordPress giveaway and contest plugin to grow traffic and social followers.<\/li>\n<li><a href=\"https:\/\/www.smashballoon.com\/\" rel=\"friend\">Smash Balloon<\/a> \u2013 #1 social feeds plugin for WordPress - display social media content in WordPress without code.<\/li>\n<li><a href=\"https:\/\/aioseo.com\/\" rel=\"friend\">AIOSEO<\/a> \u2013 the original WordPress SEO plugin to help you rank higher in search results (trusted by over 2 million sites).<\/li>\n<li><a href=\"https:\/\/www.pushengage.com\/\" rel=\"friend\">PushEngage<\/a> \u2013 Connect with visitors after they leave your website with the leading web push notification plugin.<\/li>\n<li><a href=\"https:\/\/trustpulse.com\/\" rel=\"friend\">TrustPulse<\/a> \u2013 Add real-time social proof notifications to boost your store conversions by up to 15%.<\/li>\n<\/ul>\n\n<p>Visit <a href=\"http:\/\/www.wpbeginner.com\/\" rel=\"friend\">WPBeginner<\/a> to learn from our <a href=\"http:\/\/www.wpbeginner.com\/category\/wp-tutorials\/\" rel=\"friend\">WordPress Tutorials<\/a> and find out about other <a href=\"http:\/\/www.wpbeginner.com\/category\/plugins\/\" rel=\"friend\">best WordPress plugins<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install the Comment Moderation Role plugin by uploading the <code>comment-moderation-role<\/code> directory to the <code>\/wp-content\/plugins\/<\/code> directory. (See instructions on <a href=\"https:\/\/www.wpbeginner.com\/beginners-guide\/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners\/\" rel=\"friend\">how to install a WordPress plugin<\/a>.)<\/li>\n<li>Activate Comment Moderation Role through the <code>Plugins<\/code> menu in WordPress.<\/li>\n<\/ol>\n\n<p>[youtube https:\/\/www.youtube.com\/watch?v=QXbrdVjWaME]<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20is%20this%20different%20from%20wordpress%27s%20moderate_comments%20permission%3F\"><h3>How is this different from WordPress's moderate_comments permission?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"are%20there%20filters%20for%20developers%3F\"><h3>Are there filters for developers?<\/h3><\/dt>\n<dd><p>Yes, the roles and capabilities used by this plugin can be modified by filters.<\/p>\n\n<p>Filters should be run prior to the <code>plugins_loaded<\/code> hook running. As a result they can not be added to a theme's functions.php file.<\/p>\n\n<p>The default moderator capability is Core's <code>moderate_comments<\/code>. This can be replaced with any string using the filter <code>wpb.comment_moderation_role.moderator_cap<\/code>.<\/p>\n\n<p>Example:<\/p>\n\n<pre><code>&lt;?php\nadd_filter(\n    'wpb.comment_moderation_role.moderator_cap',\n    function() { return 'wpb_moderate_comments'; }\n);\n<\/code><\/pre>\n\n<p>The default moderator role is displayed in the admin as <code>WPB Comment Moderator<\/code>. This can be replaced with any string using the filter <code>wpb.comment_moderation_role.moderator_role_name<\/code>.<\/p>\n\n<p>Example:<\/p>\n\n<pre><code>&lt;?php\nadd_filter(\n    'wpb.comment_moderation_role.moderator_role_name',\n    function() { return 'WPB Support Staff'; }\n);\n<\/code><\/pre>\n\n<p>The default moderator role's slug is <code>wpb_comment_moderator<\/code>. This can be replaced with any string using the filter <code>wpb.comment_moderation_role.moderator_role_slug<\/code>.<\/p>\n\n<p>Example:<\/p>\n\n<pre><code>&lt;?php\nadd_filter(\n    'wpb.comment_moderation_role.moderator_role_slug',\n    function() { return 'wpb_support_staff'; }\n);\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h3>1.1.2<\/h3>\n\n<ul>\n<li>Updated: Tested up to WordPress 6.9.4<\/li>\n<\/ul>\n\n<h3>1.1.1<\/h3>\n\n<ul>\n<li>Misc: Internal documentation updates.<\/li>\n<li>Misc: The plugin is tested up to WordPress 6.0.<\/li>\n<\/ul>\n\n<h3>1.1.0<\/h3>\n\n<ul>\n<li>Fix: Ensure replying to comments via the moderation screen links the comment to a post.<\/li>\n<\/ul>","raw_excerpt":"Add a new comment moderator user role to your site.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/142970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=142970"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wpbeginner"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=142970"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=142970"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=142970"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=142970"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=142970"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=142970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}