apply_filters( 'tribe_tickets_get_ticket_default_max_purchase', int $default_max, Tribe__Tickets__Ticket_Object $ticket )

Cap the amount of tickets able to be purchased at a single time (single “add to cart” action) for sanity and performance reasons.

Anything less than 1 will be ignored and reset to the default.

Parameters #


(int) Maximum quantity allowed at one time (only applicable if the ticket stock available is greater).


(Tribe__Tickets__Ticket_Object) Ticket object.

Top ↑

Return #


Top ↑

Source #

File: src/Tribe/Tickets_Handler.php

Top ↑

Changelog #

Version Description
4.11.5 Introduced.