Skip to content

Instantly share code, notes, and snippets.

@Apina
Created February 19, 2015 08:51
Show Gist options
  • Save Apina/c8c922158a62a97e7e2a to your computer and use it in GitHub Desktop.
Save Apina/c8c922158a62a97e7e2a to your computer and use it in GitHub Desktop.
Removes price modifiers (rather than taxes) from the price, so it shows the base price.
<?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 without Price Modifiers.
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 ) {
$x = $ticket->base_price();
$y = $x->get('PRC_amount');
return $y;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment