Clanbite Since 1.2.0
clanbite_get_avatar_url( string $type, int $id, string $size = 'medium', string $context = '' ): stringGet avatar URL for an entity.
Parameters
$type(string) RequiredEntity type: 'player', 'team', 'group'.
$id(int) RequiredEntity ID.
$size(string) OptionalSize preset or slug.
Default:
'medium'$context(string) OptionalContext identifier.
Default:
''
Returns
string Avatar URL or empty string.
Defined in inc/avatar-helpers.php
Changelog
| Version | Description |
|---|---|
| 1.2.0 | Introduced. |