# clanbite_notification_actor_avatar_html()

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

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

## Parameters

- `$user_id` (int) Actor user ID.
- `$notification_id` (int) Notification the avatar sits in (passed to avatar filters as `object_id`); 0 when unknown.

## Return

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

## Changelog

| Version | Description |
| --- | --- |
| 1.6.3 | Updated |
| 1.6.2 | Introduced |
