WordPress评论者邮箱链接标签:comment_author_email_link

WordPress模板标签comment_author_email_link用于输出评论作者的邮箱链接,通常用于自定义评论模板中。

comment_author_email_link( string $linktext = '', string $before = '', string $after = '', int $comment = null )

函数参数

$linktext

字符串值,默认值:评论作者的Email

提供一个文本作为链接的锚文本

$before

字符串值,默认值为空

链接前的文本(不可点击)

$after

字符串值,默认值为空

链接后的文本(不可点击)

函数使用示例

Email: <?php comment_author_email_link(); ?>

扩展阅读

comment_author_email_link()函数位于:wp-includes/comment-template.php

相关函数:

阿里云