# clanbite_ranks_get_avatar_badge_for_rest()

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

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

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

## Parameters

- `$user_id` (int) User ID.

## Return

`array<string, mixed>`
