comment_author_link

Display the html link to the url of the author of the current comment.

Description

comment_author_link( (int) $comment_ID = 0 ); 

Parameters (1)

0. $comment_id — Optional. (int)
WP_Comment or the ID of the comment for which to print the author's link.

Usage

  1. if ( !function_exists( 'comment_author_link' ) ) { 
  2. require_once ABSPATH . WPINC . '/comment-template.php'; 
  3.  
  4. // Optional. WP_Comment or the ID of the comment for which to print the author's link. 
  5. // Default current comment. 
  6. $comment_id = -1; 
  7.  
  8. // NOTICE! Understand what this does before running. 
  9. $result = comment_author_link($comment_id); 
  10.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/comment-template.php  
  1. function comment_author_link( $comment_ID = 0 ) { 
  2. echo get_comment_author_link( $comment_ID );