WPDev.one
Core Function
View Source on Trac ↗

get_comment_author_url_link()

get_comment_author_url_link( mixed $link_text = '', mixed $before = '', mixed $after = '', mixed $comment = 0 )

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

Parameters 4 required

Name / Type Description
string

$link_text Optional. The text to display instead of the comment author's email address. Default empty.

Required
string

$before Optional. The text or HTML to display before the email link. Default empty.

Required
string

$after Optional. The text or HTML to display after the email link. Default empty.

Required
mixed

(int | WP_Comment) $comment Optional. Comment ID or WP_Comment object. Default is the current comment.

Required

Return Value

(string)
The HTML link between the $before and $after parameters.

Function Information

Since Version
1.5.0
Source File
wp-includes/comment-template.php
Advertisement