WordPress:Template Tags/comment author email

来自站长百科
跳转至: 导航、​ 搜索

描述[ ]

显示评论作者的电子邮件地址,并不是链接的。如果讨论 选项下面的"用户必须填写姓名和电子邮件地址"激活了,就必须提供一个电子邮箱地址。必须在The Loop,或者一个评论loop内使用这个标签。

用法[ ]

%%% <?php comment_author_email(); ?> %%%

例子[ ]

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

<?php comment_author(); ?></a>

(注: 不推荐你显示电子邮件地址,因为电子邮件spammers会从你的站点上截获你的电子邮件地址。)

参数[ ]

这个标签没有参数。

相关的[ ]

comments_number, comments_link, comments_rss_link, comments_popup_script, comments_popup_link, comment_ID, comment_author, comment_author_IP, comment_author_email, comment_author_url, comment_author_email_link, comment_author_url_link, comment_author_link, comment_type, comment_text, comment_excerpt, comment_date, comment_time, comments_rss_link, comment_author_rss, comment_text_rss, comment_link_rss, permalink_comments_rss

模板:没有 Param标签 页底文字