apply_filters( 'get_comment_author_link', string $comment_author_link , string $comment_author , string $comment_id )
Filters the comment author’s link for display.
Parameters
-
$comment_author_link
string -
The HTML-formatted comment author link.
Empty for an invalid URL. -
$comment_author
string -
The comment author's username.
-
$comment_id
string -
The comment ID as a numeric string.
More Information
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.
Source
File: wp-includes/comment-template.php
.
View all references
return apply_filters( 'get_comment_author_link', $comment_author_link, $comment_author, $comment_id );
Changelog
Version | Description |
---|---|
4.1.0 | The $comment_author and $comment_id parameters were added. |
1.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Link to author posts archive page:
It should work as long as the comment was submitted by a verified and logged-in user on your blog.