class EventsInitializes the core events/RSVP system.
This is intentionally generic so Teams/Matches and group integrations share the same RSVP storage + REST API + hooks. Group capabilities use clanbite_groups_user_can_manage() and clanbite_groups_user_is_member() (extensions filter those; core does not call add-ons).
class final
- Full name
Kernowdev\Clanbite\Events\Events
Methods
filter_cp_event_attendee_list_access()Allow team/group members to see hidden attendee lists for cp_event RSVPs.filter_cp_players_events_template()Merge player events subpage template into Players templates.filter_profile_subpage_events_nav_visible()Hide the shared events subpage tab when it does not apply (owner-only player calendar, per-team flag).get_attendees_visibility()Get event attendee list visibility.handle_frontend_delete_event()Trash an event from a front-end POST (event detail block).instance()Get singleton instance.maybe_create_tables()Create tables if needed.register_blocks()Register core event blocks (RSVP UI, etc.).register_cp_players_events_template_filter()Add player-events to the Players extension FSE templates (before init priority 10).register_group_events_block_template()Register the group events block template for Site Editor and extensions.register_group_events_subpage()Register the group profile “Events” tab for integrations (cp_group + Social Kit).register_player_events_subpage()Register the player profile “Events” tab (/players/{nicename}/events/).register_rest_routes()Register REST API routes.register_team_events_subpage()Register the team profile "Events" tab when Teams uses directory URLs (/teams/{slug}/events/).register()Register hooks.viewer_can_see_event()Check whether a viewer is allowed to see an event at all.
Defined in inc/events/class-events.php