WordPress函数:comment_author_url_link 显示当前评论作者的URL的HTML链接。

江河/ 2023年05月28日/ WordPress/ 浏览 656

函数原型:


comment_author_url_link( string $linktext = '', string $before = '', string $after = '', int|WP_Comment $comment )


参数说明:


$linktext,要显示的文本,而不是评论作者的URL。


$before,要在评论作者的URL链接之前显示的文本或HTML。


$after, 要在评论作者的URL链接后显示的文本或HTML。


$comment,评论ID或WP_Comment对象。默认为当前评论。


函数源码:


function comment_author_url_link( $linktext = '', $before = '', $after = '', $comment = 0 ) {
	echo get_comment_author_url_link( $linktext, $before, $after, $comment );
}


使用举例:


web site: <?php comment_author_url_link(); ?><br />


发表评论

暂无评论,抢个沙发...

客服 工单