Title: comment_notification_recipients
Published: April 25, 2014
Last modified: August 20, 2026

---

# apply_filters( ‘comment_notification_recipients’, string[] $emails, string $comment_id )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/comment_notification_recipients/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/comment_notification_recipients/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/comment_notification_recipients/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/comment_notification_recipients/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/comment_notification_recipients/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/comment_notification_recipients/?output_format=md#wp--skip-link--target)

Filters the list of email addresses to receive a comment notification.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/comment_notification_recipients/?output_format=md#description)󠁿

By default, only post authors are notified of comments. This filter allows others
to be added.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/comment_notification_recipients/?output_format=md#parameters)󠁿

 `$emails`string[]

An array of email addresses to receive a comment notification.

`$comment_id`string

The comment ID as a numeric string.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/comment_notification_recipients/?output_format=md#source)󠁿

    ```php
    $emails = apply_filters( 'comment_notification_recipients', $emails, $comment->comment_ID );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/pluggable.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/pluggable.php#L1779)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/pluggable.php#L1779-L1779)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/comment_notification_recipients/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_notify_postauthor()](https://developer.wordpress.org/reference/functions/wp_notify_postauthor/)`wp-includes/pluggable.php` |

Notifies an author (and/or others) of a comment/trackback/pingback on a post.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/comment_notification_recipients/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.7.0](https://developer.wordpress.org/reference/since/3.7.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fcomment_notification_recipients%2F)
before being able to contribute a note or feedback.