# Send Comment Moderation Emails to More People

> Sends "comment awaiting moderation" emails to extra addresses, such as your community manager, besides the site admin and post author.

- Type: PHP
- Runs: Run everywhere
- Category: [Comments](https://wpide.com/library/category/comments/)
- Tags: comments, moderation, email
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/extra-comment-moderation-recipients/

## Code

```php
// Extra recipients for moderation emails.
$wpide_extra_moderators = array( 'community@example.com' );

add_filter( 'comment_moderation_recipients', function ( $emails ) use ( $wpide_extra_moderators ) {
    return array_values( array_unique( array_merge( (array) $emails, array_filter( $wpide_extra_moderators, 'is_email' ) ) ) );
} );
```

## Notes

Emails are only sent while "A comment is held for moderation" is ticked in Settings > Discussion.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Send Comment Moderation Emails to More People" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
