comment_author_url_link()
comment_author_url_link( string $linktext = ”, string $before = ”, string $after = ”, int|WP_Comment $comment )
显示当前评论作者的URL的HTML链接。
Displays the HTML link of the URL of the author of the current comment.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$linktext | (string) | 可选 | 要显示的文本,而不是评论作者的电子邮件地址。 |
$before | (string) | 可选 | 要在电子邮件链接之前显示的文本或HTML。 |
$after | (string) | 可选 | 在电子邮件链接后显示的文本或HTML。 |
$comment | (int | WP_Comment) | 可选 | 注释ID或WP_Comment对象。默认为当前注释。 |
返回(Return)
无返回值
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.6.0 | wp-includes/comment-template.php:414 | 0 | 1 function |
笔记(Notes)
默认用法
链接文本和样式
comment_author_url_link() 为WP2原创文章,链接:https://www.wp2.cn/functions/comment_author_url_link/