Filter hook 'comment_notification_recipients'

in WP Core File wp-includes/pluggable.php at line 1675

Description

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.

Occurrences

Filename Line Number
wp-includes/pluggable.php 1675

Parameters

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

PHP Doc

/**
		 * 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.
		 *
		 * @since 3.7.0
		 *
		 * @param string[] $emails     An array of email addresses to receive a comment notification.
		 * @param string   $comment_id The comment ID as a numeric string.
		 */