comment_author_link() - WordPress 函数参考中文文档

返回介绍

comment_author_link()

发布于 2017-09-10 字数1434 浏览 950 评论 0

comment_author_link( int|WP_Comment $comment_ID )

Display the html link to the url of the author of the current comment.


描述


参数

$comment_ID

(int|WP_Comment)
(Optional)
WP_Comment or the ID of the comment for which to print the author’s link. Default current comment.


源代码

File: wp-includes/comment-template.php

function comment_author_link( $comment_ID = 0 ) {
	echo get_comment_author_link( $comment_ID );
}

更新日志

Version 描述
4.4.0 Added the ability for $comment_ID to also accept a WP_Comment object.
0.71 Introduced.

相关函数

Uses

  • wp-includes/comment-template.php:
    get_comment_author_link()

Used By

  • wp-admin/includes/dashboard.php:
    _wp_dashboard_recent_comments_row()
  • wp-includes/class-walker-comment.php:
    Walker_Comment::ping()

User Contributed Notes

上一篇:comment_author_IP()

下一篇:comment_author_rss()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!