Created
April 18, 2018 05:28
-
-
Save Steeru/950ccf68cf6f32b8e66af2687d7f1625 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' ), $c, $d ); | |
} | |
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' ), $c, $d ); | |
} | |
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