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 #

$default_max

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

$ticket

(Tribe__Tickets__Ticket_Object) Ticket object.


Top ↑

Return #

(int)


Top ↑

Source #

File: src/Tribe/Tickets_Handler.php


Top ↑

Changelog #

Changelog
Version Description
4.11.5 Introduced.