Clanbite Social Kit

events_can_view_group_as_event( bool $can, string $event_type, int $event_id, int $viewer_id ): bool

Allow Social Kit groups to participate in core events/RSVP visibility checks.

This makes it possible for third-party UIs to treat cp_group objects as an event_type=group in the generic RSVP system.

public

Class: Kernowdev\ClanbiteSocialKit\Extension\Social_Kit

Parameters

$can (bool) Required

Whether viewer can see the event.

$event_type (string) Required

Event type slug.

$event_id (int) Required

Event ID.

$viewer_id (int) Required

Viewer ID (0 for anon).

Returns

bool

Defined in inc/Extension/Social_Kit.php