Something like this should work:
add_filter('comment_notification_recipients', 'override_comment_notice_repicient', 10, 2);
function override_comment_notice_repicient($emails, $comment_id) {
$admins = get_users( array(
'role__in' => array('administrator'),
) );
foreach ( $admins as $user ) {
$emails[] = $user->user_email;
}
return ($emails);
}
Related Posts:
- How to change the email notification recipient (user) for new comments?
- If new comment posted in custom post – send notification to custom email from custom field
- Disable Admin account being emailed for comment notification
- WordPress comments email notification for authors
- Send Notifications to All Admins
- Reject Comments Based on Author Email
- Same email for all comments
- Error While Sending Comment
- Reply By Email to comment notifications
- comment reply by email
- How can I get list of emails of users who commented on a post?
- How do I disable the discussion notification emails to us when a comment is “approved” and when an adiministrator replies?
- How to get Post title by locale with Qtranslate-X
- How to use filter on comment submission/insert
- How to prevent users/authors from seing IP/email of new commentators?
- Not receiving any e-mails after new comment
- Comment notification not working
- Subscribe to a post’s comments without posting a comment yourself
- Change Comment Author Display Name
- comments reply script not working
- What should I do to make generated avatars different for anonymous comments?
- Check If comment author is registered
- How do I set up real anonymous posting in bbpress forums? [closed]
- How do I turn off wordpress comments ability to capture a users ip address?
- Success message in comment form
- How to remove commenters ability to add hyperlinks to comments?
- Exclude internal links from comment moderation?
- Change the HTML output of comments
- Can’t add default comments to custom post type
- Upload images with comment
- Change language of comments template
- Multiple Comment Forms in a single page [closed]
- Why Allow Script Commands in Comments?
- How to enable comments options?
- WordPress comment count to include attachment comments
- How to no follow the paginated comments
- Remove “Comments are closed” Notice from Custom Post Type template
- Comment count wrong with orphaned comments
- Get comment content by comment ID
- Pings and replies
- Retrieve comments from current post using SQL
- Comment_Reply_Link Not Showing?
- Display recent comments with gravatar and excerpts?
- Is comment metadata included in the export file?
- Get a List of All Commenters on the Current Post
- Display the number of unseen comments on a page since the user last visit
- Log in link not showing, Comment Issue
- Removing the limit on the number of nested comments
- How to call my custom WordPress Comment form without getting the comments?
- How to moderate (manually approve) comments of a specific (registered) User
- How to limit comment author to one comment per post
- Make WordPress process admin group comments using $allowedtags
- Can comments by a logged-in user be displayed at the top?
- WordPress comments work locally only?
- Incorrect redirection after commenting on custom type
- “Discussion” checkboxes unchecked by default on pages? [duplicate]
- How to disable or hide WordPress.com as a social media login option for Jetpack Comments [closed]
- How to limit comment indentations to one level?
- WordPress for questions and responses website
- Minimum allowed comment length only on a specific page
- How can get comment id from comment link?
- How to Add text to the start of all comment?
- How to get comments other than using wp_list_comments?
- reCaptcha doesnt appear in comment (manual or plugin)
- Add a Comment on/off option in Screen Options for Comments?
- I update a post and it creates a pingback? Any idea why?
- How to get recent comment link
- assumed as comment line
- How / where is the wp_query object created for RSS feeds?
- Separate page for comments using permalinks and add_rewrite_rule
- Return count for characters in the comment and perform action based on the length
- How to load new posts from wordpress db into wordpress homepage without refreshing the site?
- Cannot Remove Title Reply from Custom Comment Template for Signup Page
- comments.php remove date/time’s #hyperlink
- comment just attachment .. reply just text … can I do that?
- How to make email field not required in comments?
- Email content as comment
- I want to limit registered user to 1 comment per post in WordPress
- edit comments in front end
- How to replace anonymous comment form with a registration form on wordpress?
- What is wrong with this? [closed]
- Comment moderation
- I have tried using Plugins to remove 72K comments with no success
- How to get the 5 most recent comments and each comment 5 most recent replies (children)
- How to check if post has previous_comments_link() and next_comments_link()
- Comment text area in single blog post and show comments if approved
- comment files and s
- How to ‘If Author’ Comments Check
- selectively disable akismet
- Disqus moderation page not working in WordPress admin section
- Comment Blacklist
- Comment forum to display under the comment you’re replying too
- Recent comments per tagged post?
- Modify “Recent Comments” List in WP-Admin
- Comment submission & navigation redirects to default language
- How to hide the login / profile urls on top of comment box for a post
- wp_list_comments adds unnecessary elements
- How to disable comments on new blog post, but allow on new products?
- Query comments with non-empty ‘author_url’ value on Admin Comments Screen
- Customize the new comment notifications sent to the post author after the comment is approved