# clanbite_ranks_get_avatar_badge()

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).

```php
clanbite_ranks_get_avatar_badge( int $user_id ): array
```

## Parameters

- `$user_id` (int) User ID.

## Return

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