Created
August 17, 2018 19:13
-
-
Save joshfeck/8daf730289d1dd3ceb6c52fc5e47dd82 to your computer and use it in GitHub Desktop.
Change the Event Espresso default ticket QTY setting to 45
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 | |
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
function ee_modify_ticket_row_template_args( | |
$template_args, | |
$tkt_row, | |
$ticket, | |
$ticket_datetimes, | |
$all_dtts, | |
$default, | |
$all_tickets, | |
$creating_event | |
) { | |
if ( ! $creating_event ) { | |
return $template_args; | |
} | |
$template_args['TKT_qty_for_input'] = 45; | |
return $template_args; | |
} | |
add_filter( | |
'FHEE__espresso_events_Pricing_Hooks___get_ticket_row__template_args', | |
'ee_modify_ticket_row_template_args', | |
10, | |
8 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment