tribe_events_get_ticket_event( $possible_ticket )
Accepts the post object or ID for a product and, if it represents an event ticket, returns the corresponding event object.
Contents
If this cannot be determined boolean false will be returned instead.
Parameters
- $possible_ticket
-
(Required)
Return
(bool|WP_Post)
Source
File: src/template-tags/tickets.php
function tribe_events_get_ticket_event( $possible_ticket ) {
return Tribe__Tickets__Tickets::find_matching_event( $possible_ticket );
}