get_comment_author_url_link


get_comment_author_url_link ( $linktext = '', $before = '', $after = '', $comment = 0 )

Parameters:
  • (string) $linktext Optional. The text to display instead of the comment author's email address. Default empty.
  • (string) $before Optional. The text or HTML to display before the email link. Default empty.
  • (string) $after Optional. The text or HTML to display after the email link. Default empty.
  • (int|WP_Comment) $comment Optional. Comment ID or WP_Comment object. Default is the current comment.
Returns:
  • (string) The HTML link between the $before and $after parameters.
Defined at:
Change Log:
  • 4: .

Description

Retrieves the HTML link of the url of the author of the current comment.

$linktext parameter is only used if the URL does not exist for the comment author. If the URL does exist then the URL will be used and the $linktext will be ignored.

Encapsulate the HTML link between the $before and $after. So it will appear in the order of $before, link, and finally $after.

Related Functions

comment_author_url_link, get_comment_author_link, get_comment_author_url, get_comment_author_email_link, comment_author_link

Top Google Results

User discussions

wpseek mobile