WordPress开发者和主题制作者的搜索引擎



comment_notification_recipients ›

Since3.7.0
已弃用n/a
apply_filters( 'comment_notification_recipients', $emails, $comment->comment_ID )
参数: (2)
  • (array) $emails An array of email addresses to receive a comment notification.
    Required: Yes
  • (int) $comment_id The comment ID.
    Required: Yes
定义在:
文档:

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.





源码

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