wpseek.com
A WordPress-centric search engine for devs and theme authors



comment_author › WordPress Filter Hooks

Since4.1.0
Deprecatedn/a
apply_filters( 'comment_author', $comment_author, $comment->comment_ID )
Parameters: (2)
  • (string) $comment_author The comment author's username.
    Required: Yes
  • (string) $comment_id The comment ID as a numeric string.
    Required: Yes
Defined at:
Codex:

Filters the comment author's name for display.





Source

echo apply_filters( 'comment_author', $comment_author, $comment->comment_ID );