Clanbite Since 1.3.0
clanbite_get_avatar_badge( string $type, int $id ): array{show_progress: bool, progress: int, show_badge: bool, level: int, level_text: string, label: string, icon_url: string}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.
Parameters
$type(string) RequiredAvatar type:
player,teamorgroup.$id(int) RequiredEntity ID.
Returns
array{show_progress: bool, progress: int, show_badge: bool, level: int, level_text: string, label: string, icon_url: string}
Defined in inc/avatar-helpers.php
Changelog
| Version | Description |
|---|---|
| 1.3.0 | Introduced. |