comment_moderation_recipients
云策文档标注
概述
comment_moderation_recipients 是一个 WordPress 过滤器,用于修改评论审核邮件的收件人列表。它允许开发者自定义哪些电子邮件地址会收到新评论待审核的通知。
关键要点
- 过滤器名称:comment_moderation_recipients
- 参数:$emails(字符串数组,待通知的电子邮件地址列表)和 $comment_id(整数,评论 ID)
- 用途:在 wp_notify_moderator() 函数中调用,用于通知站点管理员有新的评论需要审核
- 引入版本:WordPress 3.7.0
原文内容
Filters the list of recipients for comment moderation emails.
Parameters
$emailsstring[]-
List of email addresses to notify for comment moderation.
$comment_idint-
Comment ID.
Source
$emails = apply_filters( 'comment_moderation_recipients', $emails, $comment_id );
Changelog
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |