get_comment_author filter-hook . WP 1.5.0
Filters the returned comment author name.
Usage
add_filter( 'get_comment_author', 'filter_function_name_9327', 10, 3 ); function filter_function_name_9327( $author, $comment_ID, $comment ){ // filter... return $author; }
- $author(string)
- The comment author's username.
- $comment_ID(int)
- The comment ID.
- $comment(WP_Comment)
- The comment object.
Changelog
Since 1.5.0 | Introduced. |
Since 4.1.0 | The $comment_ID and $comment parameters were added. |
Where the hook is called
get_comment_author
wp-includes/comment-template.php 48
return apply_filters( 'get_comment_author', $author, $comment->comment_ID, $comment );