Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wp_travel_customize_sale_price_display( $s, $c, $d ) {
- return sprintf( esc_html__('%1s %2s', 'wp-travel' ), number_format( $d , 2 ), $c );
- }
- add_filter( 'wp_travel_itinerary_sale_price', 'wp_travel_customize_sale_price_display', 99, 3 );
- function wp_travel_customize_price_display( $s, $c, $d ) {
- global $wp_travel_itinerary;
- if ( $wp_travel_itinerary && $wp_travel_itinerary->is_sale_enabled() ) {
- return sprintf( esc_html__(' %1s %2s', 'wp-travel' ), number_format( $d , 2 ), $c );
- return $s;
- }
- return sprintf( esc_html__('%1s %2s', 'wp-travel' ), number_format( $d , 2 ), $c );
- }
- add_filter( 'wp_travel_itinerary_price', 'wp_travel_customize_price_display', 99, 3 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement