Clanbite

clanbite_render_notification( object $notification, bool $compact = false ): string

Render a notification for display.

The 'clanbite_render_notification' filter runs, then markup is passed through wp_kses() with clanbite_notification_allowed_html() before return. Templates may echo the same wp_kses() pair again for late-escaping standards (idempotent).

Parameters

$notification (object) Required

Notification object.

$compact (bool) Optional

Compact mode (for dropdown). Default false.

Default: false

Returns

string Safe HTML fragment.

Defined in inc/extensions/notifications/functions.php