comment_author WordPress Filter Hook
The comment_author hook is used to display the author of a comment. This hook is used by the default comment template, but can be used in other templates as well.
apply_filters( 'comment_author', string $author , string $comment_ID ) #
Filters the comment author’s name for display.
Parameters
- $author
(string)The comment author's username.
- $comment_ID
(string)The comment ID as a numeric string.
Source
Changelog
| Version | Description |
|---|---|
| 4.1.0 | The $comment_ID parameter was added. |
| 1.2.0 | Introduced. |