# clanbite_players_get_display_avatar()

Returns the players display avatar URL.

All Clanbite player avatar surfaces should resolve the image URL through this function so third-party
code can override output once (XP overlays, rank badges as image, CDN URLs, etc.). Use the optional
`$context` argument to vary behaviour by surface; it is passed to filters and avatar markup helpers.

Pass `$avatar_preset` as `large`, `medium`, or `small` to use the image sizes configured under
Clanbite → Players (profiles, forums/social feeds, comments/replies). When set, it overrides `$size`.

```php
clanbite_players_get_display_avatar( int $player_id = 0, bool $suppress_filters = false, string|array $size = '', string $context = '', string $avatar_preset = '' ): string
```

## Parameters

- `$player_id` (int) The Player/User unique identifier.
- `$suppress_filters` (bool) Disallows filtering of the value.
- `$size` (string|array) Registered size name or array of width and height (ignored when preset is set).
- `$context` (string) Logical surface key (e.g. `player_avatar_block`, `user_nav`, `notifications`).
- `$avatar_preset` (string) Optional. `large`, `medium`, or `small` for settings-driven sizes.

## Return

`string`
