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: - Introduced in WordPress: 1.5.0
- Deprecated in WordPress: —
Description
Retrieves the author of the current comment.If the comment has an empty comment_author field, then 'Anonymous' person is
assumed.