comment_moderation_text
云策文档标注
概述
comment_moderation_text 过滤器用于修改评论审核邮件的文本内容。它允许开发者自定义发送给站点管理员的评论审核通知邮件中的消息。
关键要点
- 过滤器名称:comment_moderation_text
- 参数:$notify_message(字符串,评论审核邮件的文本)和 $comment_id(整数,评论 ID)
- 应用场景:在 wp_notify_moderator() 函数中调用,用于通知管理员有待审核的评论
- 引入版本:WordPress 1.5.2
原文内容
Filters the comment moderation email text.
Parameters
$notify_messagestring-
Text of the comment moderation email.
$comment_idint-
Comment ID.
Source
$notify_message = apply_filters( 'comment_moderation_text', $notify_message, $comment_id );
Changelog
| Version | Description |
|---|---|
| 1.5.2 | Introduced. |