The default author role does not have the moderate_comments
capabilities so you need to add that capability to the author role, so add this to your plugin:
function add_theme_caps() {
$role = get_role( 'author' ); // gets the author role
$role->add_cap( 'moderate_comments' ); // would allow the author to moderate comments
}
add_action( 'admin_init', 'add_theme_caps');
Related Posts:
- How to change the email notification recipient (user) for new comments?
- Change Comment Author Display Name
- 3 moderators to approve comment
- Check If comment author is registered
- Comment Author Name In Reply Form
- How to auto-approve internal pingbacks?
- Display all comments or recent comments per user on author page
- Exclude internal links from comment moderation?
- Multiple Comment Moderators and Notifications
- how to make author to write comment on only his own posts?
- Add delete, approve, spam Links to Comments
- How to check if commenter is the_author?
- Let user edit his own comment
- Get the number of comments awaiting moderation
- Capability for allowing user to post own comments without moderation
- edit comments capability for authors
- Why do comment moderators need to have all create/edit/delete toboth posts and pages?
- Community Moderation Plugin for Comments [closed]
- Allow contributors to moderate comments comments on posts they write
- Hold comments for moderation only if user is not logged in
- Why are authors allowed to approve comments on their posts? How to revoke privilege?
- show if comment is in moderation
- Reject Comments Based on Author Email
- Hide notifications regarding new comments
- List user comments in author page
- WordPress comments on users profile
- How to moderate (manually approve) comments of a specific (registered) User
- Comment displaying full name even after setting another display name?
- Comment Moderation and CDN Caching
- Same email for all comments
- WordPress comments – how to check if comment still needs to be approved?
- Notify post author for a new comment on his post?
- Why does akismet prevent jetpack comments from appearing in my moderation queue? [closed]
- How many members have made comments approved for an article?
- Commentlist: bypostauthor problem with children list
- How Do I Allow Comment Moderation for Other User’s Posts?
- Only Allow post author and “Premium” Role user to comment
- Sending comment notifications to different recipients depending on taxonomy terms
- get_comment_author_link not working properly
- Get Comment Author ID on the fly while posting
- Who approved a comment, to show up in dashboard
- How can I hide comment of the authors from their published posts?
- WordPress Custom Local Avatar not showing in comments
- Attaching author tag to the comment
- How to prevent users/authors from seing IP/email of new commentators?
- Author name length character limit?
- Comments counter only for Authors Posts
- Can I allow registered users to comment without being logged in or having to be approved?
- Comment moderation
- Comments pagination on author page
- Change author, disable comments, enable trackbacks for all items in library
- Prevent author from editing comments from others in their post
- Disable comment moderation in multisite
- URLs to user page is broken
- How to ‘If Author’ Comments Check
- Auto approve all comments (editor)
- Comment Blacklist
- Embed a page within WordPress dashboard?
- comment awaiting moderation
- Customize the new comment notifications sent to the post author after the comment is approved
- How do I comment out a block of tags in XML?
- R: Comment out block of code
- Why do I get comment spam even with Akismet and Captcha?
- What tools are available for managing/writing to WordPress? [closed]
- How to rearrange fields in comment_form()
- setting comments off as default for pages and custom post types?
- Is it possible to pull comments from facebook into your blog?
- Filtering the Admin Comments List to Show Only Comments from the Current User?
- Non-threaded comment replies with link to original comment
- Approve comment hook?
- Commenting in user profile page?
- How to change “You must be logged in to post a comment.”
- comment_post_ID 0 (cannot remove from dashboard)
- Disable comments on all posts/pages
- How do I delete all comments from a specific old blog post?
- Removing the “Website” Field from Comments and Replies?
- Stop WordPress redirecting comment-page-1 to the post page?
- Importing old Disqus comments into WordPress
- How to add a class to the comment submit button?
- How to wrap submit button of comment form with div
- How to enable comments for pending and draft posts?
- Using WordPress’ WYSIWYG for comments
- Enable Submit Comment Without Page Reload (Using Ajax)?
- What for is the table “wp_commentmeta” exactly?
- Getting Post Comments for post ID using WP_Query() and a Custom Loop?
- Add option to disable comments on a per posts basis?
- Resetting comment count
- When importing – failed to import: Invalid post type feedback
- Redirect user to a custom url after submitting the comment
- Paginate result set from $wpdb->get_results()
- Would switching to InnoDB from MyISAM improve performance of comments table?
- Custom comment type based on thread level
- How to add internal, revision comments to page updates
- How to load and show comments with AJAX instead of pagination?
- Linking to Page Showing Only Comments Without Parent Post
- Comment Reply javascript
- How do we remove the H3 tag for the reply-title I.D
- Comments not appearing at all
- comments reply script not working
- How to display comment form error messages in the same page