WordPress评论作者URL标签:comment_author_url

WordPress模板标签comment_author_url用于输出评论作者的主页链接,通常用在自定义评论模板中。

comment_author_url( integer $comment_ID = 0 )

函数参数

$comment_ID

整数型,默认值:0

提供一个评论ID,输入该评论的作者主页链接。

函数使用示例

<a href="<?php comment_author_url(); ?>">Visit 
<?php comment_author(); ?>'s site</a>

扩展阅读

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

相关函数:

阿里云