viewer_can_see_event( string $event_type, int $event_id, int $viewer_id ): boolCheck whether a viewer is allowed to see an event at all.
Default behavior: – match: defer to Matches extension visibility checks when available. – otherwise: allow.
Extensions should filter this for their own event types.
public static
Class: Kernowdev\Clanbite\Events\Events
Parameters
$event_type(string) RequiredEvent type slug (e.g.
match,group_event).$event_id(int) RequiredEvent object ID.
$viewer_id(int) RequiredViewer user ID (0 for anon).
Returns
bool
Defined in inc/events/class-events.php