get_comment_author_link() WP 1.0
Retrieve the HTML link to the URL of the author of the current comment.
Both get_comment_author_url() and get_comment_author() rely on get_comment(), which falls back to the global comment variable if the $comment_ID argument is empty.
Works based on: get_comment_author_url(), get_comment_author()
Basis of: comment_author_link()
Hooks from the function
Return
String. The comment author name or HTML link for author's URL.
Usage
get_comment_author_link( $comment_ID );
- $comment_ID(int/WP_Comment)
- WP_Comment or the ID of the comment for which to get the author's link.
Default: current comment
Changelog
Since 1.5.0 | Introduced. |
Since 4.4.0 | Added the ability for $comment_ID to also accept a WP_Comment object. |
Code of get_comment_author_link() get comment author link WP 5.6
Related Functions
From tag: Comments
- comment_link()
- comments_template()
- get_comment_author()
- get_comment_author_url()
- get_comment_excerpt()
- get_comment_link()