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



comment_notification_recipients › WordPress过滤钩子

Since3.7.0
已弃用n/a
apply_filters( 'comment_notification_recipients', $emails, $comment->comment_ID )
参数: (2)
  • (string[]) $emails An array of email addresses to receive a comment notification.
    Required: Yes
  • (string) $comment_id The comment ID as a numeric string.
    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 );