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:
  • 4: .

Description

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.

Related Functions

get_comment_author_url_link, get_comment_author_ip, comment_author_link, get_comment_author_url, get_comment_author_email_link

Top Google Results

User discussions

wpseek mobile