Core Function
View Source on Trac ↗ get_comment_author_link()
get_comment_author_link( mixed $comment_id = 0 ) Retrieves the HTML link to the URL of the author of the current comment.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (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. Required |
Return Value
(string)
The comment author name or HTML link for author's URL.
Function Information
Since Version
1.5.0
Source File
wp-includes/comment-template.php
Advertisement