WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Template Tags/get comment author link

Contents

Description

Retrieve the html link to the url of the author of the current comment. Calls get_comment_author_link hook on the complete link HTML or author.

Usage

 <?php echo get_comment_author_link$comment_ID ); ?> 

Parameters

$comment_ID
(int) (optional) The ID of the comment for which to get the author's link.
Default: null

Return Value

(string) 
Comment Author name or HTML link for author's URL

Source File

get comment author link() is located in wp-includes/comment-template.php.