wpseek.com
A WordPress-centric search engine for devs and theme authors



comment_notification_recipients › WordPress Filter Hooks

Since3.7.0
Deprecatedn/a
apply_filters( 'comment_notification_recipients', $emails, $comment->comment_ID )
Parameters: (2)
  • (string[]) $emails An array of email addresses to receive a comment notification.
    Required: Yes
  • (string) $comment_id The comment ID as a numeric string.
    Required: Yes
Defined at:
Codex:

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

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





Source

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