Tribe__Tickets__Tickets::get_tickets( int $post_id, string|null $context = null )
Returns all the tickets for an event, of the active ticket providers.
Contents
Parameters
- $post_id
-
(int) (Required) ID of parent "event" post.
- $context
-
(string|null) (Optional) The context of the request.
Default value: null
Return
(Tribe__Tickets__Ticket_Object[]) List of ticket objects.
Source
File: src/Tribe/Tickets.php
public function get_tickets( $post_id ) {}
Changelog
| Version | Description |
|---|---|
| 5.8.0 | Added the $context parameter. |
| 4.12.0 | Introduced. |