apply_filters( 'comment_notification_recipients', string[] $emails, string $comment_id )

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


Description

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


Top ↑

Parameters

$emails string[]
An array of email addresses to receive a comment notification.
$comment_id string
The comment ID as a numeric string.

Top ↑

Source

File: wp-includes/pluggable.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
3.7.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.