Created
January 25, 2021 17:26
-
-
Save skyshab/053ca22ff1a352d40062acf7d7676616 to your computer and use it in GitHub Desktop.
limit max purchase tickets capacity
This file contains hidden or 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 | |
add_filter( 'tribe_tickets_get_ticket_max_purchase', function( $available_at_a_time, $ticket, $event, $ticket_id ) { | |
// maybe do some logic here with one of the available arguments? | |
return 1; | |
}, 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment