apply_filters( 'clanbite_event_can_view_attendees', bool $can_view_attendees, string $event_type, int $event_id, int $viewer_id )Filter whether attendee list can be viewed.
Use this to allow team members/admins to see attendee lists even when the event is set to hidden.
Filter PHP
Parameters
$can_view_attendees(bool)Whether attendee list can be viewed.
$event_type(string)Event type slug.
$event_id(int)Event ID.
$viewer_id(int)Viewer user ID (0 for anon).
Example
add_filter( 'clanbite_event_can_view_attendees', function ( $can_view_attendees, $event_type, $event_id, $viewer_id ) {
// Change $can_view_attendees here.
return $can_view_attendees;
}, 10, 4 );Defined in inc/events/class-event-rsvp-rest-controller.php