Clanbite Avatars Since 1.2.0 Updated in 1.3.0
apply_filters( 'clanbite_{type}_avatar_classes', string[] $classes, array<string, mixed> $args )Filters the avatar CSS classes for one entity type (player, team, group).
Type-specific variant of clanbite_avatar_classes.
Filter PHP
Parameters
$classes(string[])CSS classes.
$args(array<string, mixed>)Avatar arguments (
type,id,size,context,shape, …); seeclanbite_render_avatar().
Example
add_filter( 'clanbite_{type}_avatar_classes', function ( $classes, $args ) {
// Change $classes here.
return $classes;
}, 10, 2 );Defined in inc/avatar-helpers.php
Changelog
| Version | Description |
|---|---|
| 1.3.0 | Updated. |
| 1.2.0 | Introduced. |