apply_filters( 'tribe_tickets_get_ticket_max_purchase', int $available_at_a_time , Tribe__Tickets__Ticket_Object $ticket , WP_Post $event , int $ticket_id )
Allows filtering the quantity available displayed below the ticket quantity input for purchase of this one ticket.
If less than the maximum quantity available, will restrict that as well.
Parameters
- $available_at_a_time
-
(int) Max purchase quantity, as restricted by Max At A Time.
- $ticket
-
(Tribe__Tickets__Ticket_Object) Ticket object.
- $event
-
(WP_Post) Event post.
- $ticket_id
-
(int) Raw ticket ID.
Source
Changelog
Version | Description |
---|---|
4.8.1 | Introduced. |
To limit the RSVP purchases to 1 in Event Tickets you can try this:
To `provider_class` can have the following values:
Tribe__Tickets__RSVP
Tribe__Tickets_Plus__Commerce__WooCommerce__Main
Tribe__Tickets_Plus__Commerce__EDD__Main