I already solved it with this filter:
function wpsk_comment_moderation_recipients( $emails, $comment_id ) {
// Adding any email
$emails = array( '[email protected]' );
return $emails;
}
add_filter( 'comment_moderation_recipients', 'wpsk_comment_moderation_recipients', 11, 2 );
add_filter( 'comment_notification_recipients', 'wpsk_comment_moderation_recipients', 11, 2 );
@jurosko Thank you for the suggestion, I’ve added this feature request to our internal issue tracker. I’ll discuss with the other developers if this is a feature they wish to add.
By default WordPress emails the site’s admin email address and the author of the post but I can see why it would be handy to notify people with the comment moderator role.
Hi Vladimir,
As I’ve put this on our feature request list, I’m going to mark this issue as resolved for now.
You can still reply to conversations marked resolved if you need to add any further details.