Skip to content

Instantly share code, notes, and snippets.

@Steeru
Created April 17, 2018 03:29
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 Steeru/0e2e0bf39ea56951e603e170b24bb26c to your computer and use it in GitHub Desktop.
Save Steeru/0e2e0bf39ea56951e603e170b24bb26c to your computer and use it in GitHub Desktop.
function wp_travel_customize_price_display( $s, $c, $d ) {
global $wp_travel_itinerary;
if ( $wp_travel_itinerary->is_sale_enabled() ) {
return $s;
}
return sprintf( esc_html__('Starting from %1s %2s', 'wp-travel' ), $d, $c );
}
add_filter( 'wp_travel_itinerary_price', 'wp_travel_customize_price_display', 99, 3 );
function wp_travel_customize_sale_price_display( $s, $c, $d ) {
return sprintf( esc_html__('Starting from %1s %2s', 'wp-travel' ), $d, $c );
}
add_filter( 'wp_travel_itinerary_sale_price', 'wp_travel_customize_sale_price_display', 99, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment