Clanbite Ranks

clanbite_ranks_get_avatar_badge_for_rest( int $user_id ): array<string, mixed>

Avatar ring / badge data shaped for Interactivity templates (REST author payload avatar_badge).

Interactivity bindings cannot negate a value, so each flag is also provided inverted (hide_*), and the ring length is a ready stroke-dasharray string.

Namespace: Kernowdev\ClanbiteRanks

Parameters

$user_id (int) Required

User ID.

Returns

array<string, mixed>

Defined in inc/functions.php