comment_author_email()
comment_author_email( int|WP_Comment $comment_ID )
显示当前全局$comment作者的电子邮件。
Displays the email of the author of the current global $comment.
说明(Description)
应注意保护电子邮件地址,并确保电子邮件收割机不会捕获您的评论者的电子邮件地址。大多数人认为他们的电子邮件地址不会以原始形式出现在网站上。这样做将使任何人,包括那些人们不想得到电子邮件地址,并使用它为自己的手段好与坏。
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$comment_ID | (int | WP_Comment) | 可选 | WP_Comment或要打印作者电子邮件的评论的ID。默认当前注释。 |
返回(Return)
无返回值
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.4.0 | wp-includes/comment-template.php:117 | 0 | 4 |
笔记(Notes)
例子
comment_author_email() 为WP2原创文章,链接:https://www.wp2.cn/functions/comment_author_email/