WordPress.org

Codex

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

Function Reference/comment author link

Description

Displays the comment author's name linked to his/her URL, if one was provided.

Use get_comment_author_link to retrieve the value.

Usage

 <?php comment_author_link$comment_ID ); ?> 

Example

<p>Comment by: <?php comment_author_link(); ?></p>

Parameters

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

Changelog

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

Related

Comments Functions

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