1. 首页
  2. WordPress钩子手册

comment_email

apply_filters( ‘comment_email’, string $comment_author_email, WP_Comment $comment )

过滤器::过滤评论作者的电子邮件以供显示。
Filter Hook: Filters the comment author’s email for display.

目录锚点:#说明#参数#源码


说明(Description)

应注意保护电子邮件地址,并确保电子邮件收割机不会捕获您的评论者的电子邮件地址。


参数(Parameters)

参数 类型 说明
$comment_author_email (string) 评论作者的电子邮件地址。
$comment (WP_Comment) 注释对象。

源码(Source)


更新版本 源码位置 使用 被使用
4.1.0 wp-includes/comment-template.php:193 2 0

comment_email 为WP2原创文章,链接:https://www.wp2.cn/hook/comment_email/