Clanbite Since 1.3.0

clanbite_avatar_resolve_shape( string $type, string $override = '' ): string

Resolve the avatar shape for an entity type: an explicit override, else the Players / Teams / Groups setting.

Parameters

$type (string) Required

Avatar type: player, team or group.

$override (string) Optional

Shape passed by the caller (circle, square, hexagon) or empty.

Default: ''

Returns

string Shape slug.

Defined in inc/avatar-helpers.php

Changelog

VersionDescription
1.3.0Introduced.