# Social_Kit::events_can_view_group_as_event()

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.

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

## Parameters

- `$can` (bool) Whether viewer can see the event.
- `$event_type` (string) Event type slug.
- `$event_id` (int) Event ID.
- `$viewer_id` (int) Viewer ID (0 for anon).

## Return

`bool`
