Clanbite Since 1.6.3
clanbite_avatar_resolve_context( array $args ): array<string, mixed>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).
Parameters
$args(array<string, mixed>) RequiredAvatar arguments after defaults.
Returns
array<string, mixed> The arguments with viewer_id, is_viewer, object_type, object_id, extension and context_data normalised.
Defined in inc/avatar-helpers.php
Changelog
| Version | Description |
|---|---|
| 1.6.3 | Introduced. |