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

Avatar type: player, team or group.

$id (int) Required

Entity 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

VersionDescription
1.3.0Introduced.