On this page
apply_filters( 'comment_author', string $author, string $comment_ID )
Filters the comment author’s name for display.
Parameters
$authorstring-
The comment author's username.
$comment_IDstring-
The comment ID as a numeric string.
Source
File: wp-includes/comment-template.php. View all references
echo apply_filters( 'comment_author', $author, $comment->comment_ID );
Related
Used By
| Used By | Description |
|---|---|
| comment_author() wp-includes/comment-template.php | Displays the author of the current comment. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comment_author