get_comment_author_link()
get_comment_author_link( int|WP_Comment $comment_ID )
检索指向当前注释作者URL的HTML链接。
Retrieves the HTML link to the URL of the author of the current comment.
说明(Description)
get_comment_author_url()和get_comment_author()都依赖于get_comment(),如果$comment_ID参数为空,则返回全局comment变量。
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$comment_ID | (int | WP_Comment) | 可选 | WP_Comment或要获取作者链接的评论的ID。默认当前注释。 |
返回(Return)
(string)作者URL的注释作者名称或HTML链接。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.4.0 | wp-includes/comment-template.php:219 | 5 | 5 |
get_comment_author_link() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_comment_author_link/