get_comment_author_link()
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.
Used By: comment_author_link()
Hooks from the function
Return
String
. The comment author name or HTML link for author's URL.
Usage
get_comment_author_link( $comment_ID );
- $comment_ID(int|WP_Comment)
- WP_Comment or the ID of the comment for which to get the author's link.
Default: current comment
Changelog
Since 1.5.0 | Introduced. |
Since 4.4.0 | Added the ability for $comment_ID to also accept a WP_Comment object. |