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.

If this cannot be determined boolean false will be returned instead.


Parameters

$possible_ticket

(Required)


Top ↑

Return

(bool|WP_Post)


Top ↑

Source

File: src/template-tags/tickets.php

	function tribe_events_get_ticket_event( $possible_ticket ) {
		return Tribe__Tickets__Tickets::find_matching_event( $possible_ticket );
	}