Skip to content

Instantly share code, notes, and snippets.

@BeardedGinger
Created September 20, 2014 03:35
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 BeardedGinger/6a4c971e50c33ec0f48e to your computer and use it in GitHub Desktop.
Save BeardedGinger/6a4c971e50c33ec0f48e to your computer and use it in GitHub Desktop.
Eventbrite price range hardcoded
<?php
/**
* Hardcode the starting price for Eventbrite event price ranges
* temp fix until solution is found for core plugin
*/
add_filter( 'tribe_eb_event_cost', 'eb_set_start_term' );
function eb_set_start_term( $cost ) {
$min_price_term = 'Free';
$max_cost = explode( " - ", $cost );
return $min_price_term . ' - ' . $max_cost[1];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment