comment_author

Definition:
function comment_author( $comment_ID = 0 ) {}

Displays the author of the current comment.

Parameters

  • int $comment_ID: The ID of the comment for which to print the author. Optional.

Defined filters

  • comment_author
    apply_filters('comment_author', get_comment_author( $comment_ID )

Source code

function comment_author( $comment_ID = 0 ) {

	$author = apply_filters('comment_author', get_comment_author( $comment_ID ) );

	echo $author;

}

661

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: