eo_get_event_tickets
since 1.0
Pro
eo_get_event_tickets( $post_id, $occurrence_ids )
Retrieve a list of tickets for this event
Can be used inside the loop by not specifying the event (post) ID. The spaces indicates the number
of spaces the ticket was created with - not how many remaining. For remaining tickets see
eo_get_the_occurrences_tickets()
Returns an array of tickets of the form
ticket ID => array(
name => [Ticket Name]
spaces => [How Many Spaces this ticket was *created* with]
price => [The ticket price]
occurrence_ids => [Array of occurrence IDs corresponding to the dates this ticket is available]
mid => [Ticket ID (meta table ID)]
to => [DateTime when ticket is valid till / null if indefinite]
from => [DateTime when ticket is valid from / null if indefinite]
)
Parameters
int
|
$post_id |
The Event (post) ID
|
|
$occurrence_ids |
|
Return value
array
|
An array of tickets
|
Hooks
Changelog
Related