# clanbite_get_avatar_badge()

Data for an avatar's XP ring and rank badge.

Players get it from the Ranks companion (`clanbite_ranks_get_avatar_badge()`); teams and groups have none. Plugins can
supply or adjust it with the `clanbite_avatar_badge` filter.

```php
clanbite_get_avatar_badge( string $type, int $id ): array
```

## Parameters

- `$type` (string) Avatar type: `player`, `team` or `group`.
- `$id` (int) Entity ID.

## Return

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

## Changelog

| Version | Description |
| --- | --- |
| 1.3.0 | Introduced |
