# clanbite_ranks_get_avatar_badge()

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

Global alias of `\Kernowdev\ClanbiteRanks\clanbite_ranks_get_avatar_badge()` so themes and other plugins can use the documented
name behind the usual `function_exists()` check.

```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}`
