What is the moderate_comments permission in WordPress?
Officially, two things are said about the moderate_comments permission:
- It allows users access to the “Comments” area in WordPress.
- It will not work unless you also have the edit_posts permission.
Unofficially, you don't need moderate_comments for moderating comments. If you have edit_posts, that allow you access to the “Comments” screen and you can manage comments.
So why does anyone need the moderate_comments capability?
The main feature of this permission is that your comments are published automatically. If you do not have the moderate_comments capability, you will see this message after posting a comment: “Your comment is awaiting moderation.” If you do have the the moderate_comments capability, your comments will be published automatically.
Who has the moderate_comments permission?
The moderate_comments permission is available on single WordPress sites and on multisite networks.
Users not in these roles will not have their comments published automatically.
How to control who has the moderate_comments permission
You can control who has the moderate_comments permission by installing the PublishPress Capabilities plugin.
- After installing PublishPress Capabilities, go to “Capabilities” in your WordPress admin menu.
- In “Select Role to View/Edit”, choose the role you want to edit.
- Check the box “moderate_comments”.
- Click “Save Changes”.