模板标签-comment_author_email()

0条评论

说明

该标签显示评论作者的邮箱地址,无链接。若设置>讨论中的“用户必须填写姓名和email地址以发表评论”选项被选中,则用户必须填写邮箱地址才能发表评论。该标签必须用在WordPress主循环(loop)或评论循环中。

用法

<?php comment_author_email(); ?> 

示例

<a href="mailto:<?php comment_author_email(); ?>">contact   
<?php comment_author(); ?></a>  

(注意:不推荐显示email地址,垃圾评论发送者会从各个网站上搜集电子邮件地址然后给这些地址发送垃圾邮件。)

参数

该标签无参数。

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.