apply_filters( 'clanbite_avatar_badge', array<string, mixed> $data, string $type, int $id )Filters the XP ring / rank badge data of an avatar.
Filter PHP
Parameters
$data(array<string, mixed>)Keys
show_progress,progress(0-100),show_badge,level,level_text,label,icon_url.$type(string)Avatar type (
player,team,group).$id(int)Entity ID.
Example
add_filter( 'clanbite_avatar_badge', function ( $data, $type, $id ) {
// Change $data here.
return $data;
}, 10, 3 );Defined in inc/avatar-helpers.php
Changelog
| Version | Description |
|---|---|
| 1.3.0 | Introduced. |