# clanbite_avatar_resolve_context()

Complete an avatar's arguments with who is looking and where it is shown.

Every Clanbite avatar, from core or from an extension, passes through here, so every `clanbite_avatar_*` filter and action
receives the same facts: `context` (the surface, e.g. `social_feed`), `viewer_id` and `is_viewer` (is the viewer the avatar's own
player), `object_type` / `object_id` (the post, reply, notification… it sits in), `extension` (the plugin rendering it) and
`context_data` (anything else a developer wants to hand to a filter).

```php
clanbite_avatar_resolve_context( array $args ): array
```

## Parameters

- `$args` (array<string, mixed>) Avatar arguments after defaults.

## Return

`array<string, mixed>` The arguments with `viewer_id`, `is_viewer`, `object_type`, `object_id`, `extension` and `context_data` normalised.

## Changelog

| Version | Description |
| --- | --- |
| 1.6.3 | Introduced |
