Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Created August 17, 2018 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshfeck/8daf730289d1dd3ceb6c52fc5e47dd82 to your computer and use it in GitHub Desktop.
Save joshfeck/8daf730289d1dd3ceb6c52fc5e47dd82 to your computer and use it in GitHub Desktop.
Change the Event Espresso default ticket QTY setting to 45
<?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