Clanbite Ranks

clanbite_ranks_get_avatar_badge( int $user_id ): array{show_progress: bool, progress: int, show_badge: bool, level: int, level_text: string, label: string, icon_url: string}

Everything an avatar needs to draw its XP ring and rank badge, in one call.

The ring follows the first rank ladder with **Show progress on avatar** enabled; the badge follows the first ladder with **Show icon on avatar** enabled and shows the current level's icon (or its number when the level has no icon).

Namespace: Kernowdev\ClanbiteRanks

Parameters

$user_id (int) Required

User ID.

Returns

array{show_progress: bool, progress: int, show_badge: bool, level: int, level_text: string, label: string, icon_url: string}

Defined in inc/functions.php