Clanbite Since 1.3.0
clanbite_avatar_resolve_shape( string $type, string $override = '' ): stringResolve the avatar shape for an entity type: an explicit override, else the Players / Teams / Groups setting.
Parameters
$type(string) RequiredAvatar type:
player,teamorgroup.$override(string) OptionalShape passed by the caller (
circle,square,hexagon) or empty.Default:
''
Returns
string Shape slug.
Defined in inc/avatar-helpers.php
Changelog
| Version | Description |
|---|---|
| 1.3.0 | Introduced. |