get_comment_author


get_comment_author ( $comment_ID = 0 )

Parameters:
  • (int|WP_Comment) $comment_ID Optional. WP_Comment or the ID of the comment for which to retrieve the author. Default current comment.
Returns:
  • (string) The comment author
Defined at:
Change Log:
  • 4: .

Description

Retrieve the author of the current comment.

If the comment has an empty comment_author field, then 'Anonymous' person is assumed.

Related Functions

get_comment_author_ip, get_comment_author_rss, get_comment_author_url, comment_author, get_comment_author_link

Top Google Results

User discussions

wpseek mobile