apply_filters( 'comment_author', string $comment_author , string $comment_id )
Filters the comment author’s name for display.
Parameters
-
$comment_author
string -
The comment author's username.
-
$comment_id
string -
The comment ID as a numeric string.
Source
File: wp-includes/comment-template.php
.
View all references
echo apply_filters( 'comment_author', $comment_author, $comment->comment_ID );
Changelog
Version | Description |
---|---|
4.1.0 | The $comment_id parameter was added. |
1.2.0 | Introduced. |