This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Event Tickets (ET): Limit each logged-in user to a maximum purchase quantity per event. | |
* | |
* !!! Change the maximum to your own value!!! | |
* Requires ET version 4.11.1 or later, since that's when front-end ticket inputs fully supported this filter. | |
* | |
* @link https://gist.github.com/cliffordp/009f0b5f9cda516368545957eaf8543e This snippet. | |
* @link https://docs.theeventscalendar.com/reference/hooks/tribe_tickets_get_ticket_max_purchase/ This filter. |