Clanbite Since 1.6.2 Updated in 1.6.3

clanbite_notification_actor_avatar_html( int $user_id, int $notification_id = 0 ): string

The actor's avatar as the shared Clanbite avatar (shape, XP ring and rank badge), so notifications match the rest of the site.

Parameters

$user_id (int) Required

Actor user ID.

$notification_id (int) Optional

Notification the avatar sits in (passed to avatar filters as object_id); 0 when unknown.

Default: 0

Returns

string Sanitised HTML, or an empty string when the avatar system is unavailable.

Defined in inc/extensions/notifications/functions.php

Changelog

VersionDescription
1.6.3Updated.
1.6.2Introduced.