Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Last active April 18, 2019 14:11
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/8736a20cbfacf5d5b97a to your computer and use it in GitHub Desktop.
Save joshfeck/8736a20cbfacf5d5b97a to your computer and use it in GitHub Desktop.
Display the base price of the ticket in the ticket selector (instead of the modified price). Requires Event Espresso 4.4 and up.
<?php
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file
// display the base price of the ticket in the ticket selector (instead of the modified price)
add_filter(
'FHEE__ticket_selector_chart_template__ticket_price',
'change_ee_ticket_selector_base_price_display',
10,
2
);
function change_ee_ticket_selector_base_price_display(
$ticket_price,
$ticket
) {
return $ticket->base_price()->amount();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment