comment_notification_recipients
apply_filters( ‘comment_notification_recipients’, string[] $emails , int $comment_id )
筛选挂钩:筛选电子邮件地址列表以接收评论通知。
Filter Hook: Filters the list of email addresses to receive a comment notification.
说明(Description)
默认情况下,只有文章作者会收到评论通知。此筛选器允许添加其他筛选器。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$emails | (string[]) | 接收评论通知的电子邮件地址数组。 |
$comment_id | (int) | 评论ID。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.7.0 | wp-includes/pluggable.php:1516 | 1 | 0 |
comment_notification_recipients 为WP2原创文章,链接:https://www.wp2.cn/hook/comment_notification_recipients/