WordPress.org

Codex

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

Function Reference/comment author url

Description

Displays the comment author's URL (usually their web site), not linked.

If the author provided no URL, this will display the URL of the current page instead. The tag get_comment_author_url returns an empty string in this case.

Usage

 <?php comment_author_url$comment_ID ); ?> 

Example

Displays comment author's URL as a link, using comment author's name as part of the link text.

<a href="<?php comment_author_url(); ?>">Visit 
<?php comment_author(); ?>'s site</a>

Parameters

comment_ID
(integer) (optional) The ID of the comment for which to print the author's URL.
Default: 0 (the current comment)

Filters

apply_filters() Calls 'comment_url' hook on the author email

Changelog

  •  ? : Added the 'comment_ID' parameter.
  • Since: 0.71

Related

Comments Functions

See also index of Function Reference and index of Template Tags.