• Home
  • Knowledgebase
  • DevDocs
  • Translations
  • Support
  • Live Preview

logo DevDocs

By The Events Calendar
Filter by type:
Skip to content
Filter by type:
Search
Browse: Home / src/Tribe/Adjacent_Events.php

tribe_events_get_closest_event

Plugin: The Events Calendar

Filter Hook: Affords an opportunity to modify the event used to generate the event link (typically for the next or previous event in relation to $post).

Tribe__Events__Adjacent_Events::get_event_link()

Plugin: The Events Calendar

Method: Get a “previous/next post” link for events. Ordered by start date instead of ID.

tribe_events_get_event_link

Plugin: The Events Calendar

Filter Hook: Affords an opportunity to modify the event link (typically for the next or previous event in relation to $post).

Tribe__Events__Adjacent_Events::get_next_event_link()

Plugin: The Events Calendar

Method: Get link to the next event.

Tribe__Events__Adjacent_Events::get_closest_event_where()

Plugin: The Events Calendar

Method: Modify the WHERE clause of query when fetching next/prev posts so events with identical times are not excluded

Tribe__Events__Adjacent_Events::get_closest_event()

Plugin: The Events Calendar

Method: Get the prev/next post for a given event. Ordered by start date instead of ID.

tribe_events_get_{$mode}_event_link

Plugin: The Events Calendar

Filter Hook: Allows the query arguments used when retrieving the next/previous event link to be modified.

Tribe__Events__Adjacent_Events::get_current_event_id()

Plugin: The Events Calendar

Method: Get the “center” event ID to look on either side of in prev/next methods.

Tribe__Events__Adjacent_Events::get_prev_event_link()

Plugin: The Events Calendar

Method: Get link to the previous event.

Tribe__Events__Adjacent_Events::set_current_event_id()

Plugin: The Events Calendar

Method: Set the “center” event ID to look on either side of in prev/next methods.

TEC Tech Docs
Proudly powered by WordPress Theme: Product Docs.
The Events Calendar
  • Home
  • Products
  • Blog
  • Support
© 2026 The Events Calendar Terms and Conditions Privacy