apply_filters( 'clanbite_forums_author_badge', array{id: string, label: string}|null $badge, int $user_id, \WP_User $user, array<string, mixed> $rule )Filter one matched forums author badge payload.
Return null (or falsy) to suppress badge output.
Filter PHP
Parameters
$badge(array{id: string, label: string}|null)Matched badge.
$user_id(int)Author user ID.
$user(\WP_User)Author user.
$rule(array<string, mixed>)Matched rule.
Example
add_filter( 'clanbite_forums_author_badge', function ( $badge, $user_id, $user, $rule ) {
// Change $badge here.
return $badge;
}, 10, 4 );Defined in inc/Rest/Rest_Controller.php