This filter can be used to change the printed user role. The hook works only if the user is not the author of the current post and it doesn’t work for guests.
Changelog
Since 70.0. version
Parameters
1. $role (type: string) – the user role
2. $user (type: WP_User object) – the object of the current user
Usage
add_filter("wpdiscuz_user_label", function ($role, $user) { if ($user->ID == 1) { $role = "Boss"; } return $role; }, 10, 2);