comment_author_url_link

Displays the HTML link of the url of the author of the current comment.

Description

comment_author_url_link( (string) $linktext = '', (string) $before = '', (string) $after = '', (int) $comment = 0 ); 

Parameters (4)

0. $linktext — Optional. (string) => ''
Text to display instead of the comment author's email address. Default empty.
1. $before — Optional. (string) => ''
Text or HTML to display before the email link. Default empty.
2. $after — Optional. (string) => ''
Text or HTML to display after the email link. Default empty.
3. $comment — Optional. (int)
Comment ID or WP_Comment object. Default is the current comment.

Usage

  1. if ( !function_exists( 'comment_author_url_link' ) ) { 
  2. require_once ABSPATH . WPINC . '/comment-template.php'; 
  3.  
  4. // Optional. Text to display instead of the comment author's 
  5. // email address. Default empty. 
  6. $linktext = ''; 
  7.  
  8. // Optional. Text or HTML to display before the email link. 
  9. // Default empty. 
  10. $before = ''; 
  11.  
  12. // Optional. Text or HTML to display after the email link. 
  13. // Default empty. 
  14. $after = ''; 
  15.  
  16. // Optional. Comment ID or WP_Comment object. 
  17. // Default is the current comment. 
  18. $comment = -1; 
  19.  
  20. // NOTICE! Understand what this does before running. 
  21. $result = comment_author_url_link($linktext, $before, $after, $comment); 
  22.  

Defined (1)

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

/wp-includes/comment-template.php  
  1. function comment_author_url_link( $linktext = '', $before = '', $after = '', $comment = 0 ) { 
  2. echo get_comment_author_url_link( $linktext, $before, $after, $comment );