get_comment_author_link
get_comment_author_link ( $comment_id = 0 )
Parameters:- (int|WP_Comment) comment_id Optional. WP_Comment or the ID of the comment for which to get the author's link. Default current comment.
Returns:- (string) The comment author name or HTML link for author's URL.
Defined at:Change Log: - Introduced in WordPress: 1.5.0
- Deprecated in WordPress: —
Description
Retrieves 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.