This filter can be used for changing the displayed comment author name.
Changelog
Since 7.0.0 version
Parameters
1. $authorName (type: string) - the name of the user
2. $comment (type: WP_Comment object) - the current comment object
2. $comment (type: WP_Comment object) - the current comment object
Usage
add_filter("wpdiscuz_comment_author", function ($authorName, $comment) {
if ($comment->user_id == 1) {
$authorName = "Boss";
}
return $authorName;
}, 10, 2);
