eo_get_booking_tickets
since 1.0.1
Pro
eo_get_booking_tickets( $booking_ids, $group_tickets = true )
Get all purchased tickets by ID
The $args
array allows you to group purchased tickets by the (event) ticket ID.
Each ticket is of the form
object{
booking_ticket_id => [booking-ticket ID]
booking_id => [booking ID]
event_id => [Event (post) ID for which the ticket corresponds]
occurrence_id => [Occurrence ID for which the ticket corresponds - 0 if booking for series]
booking_id => [booking ID]
ticket_id => [event-ticket (type) ID]
ticket_name => [event-ticket name]
ticket_reference => [booking-ticket reference number]
ticket_price => [booking-ticket price]
ticket_quantity => [only when grouping tickets -
}
Parameters
int
|
$booking_ids |
Array of booking IDs to retrieve the tickets of
|
boolean
|
$group_tickets = true |
Whether to group tickets by ticket-type ID
|
Return value
array
|
Array of booking ticket objects
|
Changelog