A WordPress-centric search engine for devs and theme authors



comment_notification_recipients ›

Since3.7.0
Deprecatedn/a
apply_filters( 'comment_notification_recipients', $emails, $comment->comment_ID )
Parameters: (2)
  • (array) $emails An array of email addresses to receive a comment notification.
    Required: Yes
  • (int) $comment_id The comment ID.
    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 );