If you wanted to change the display pattern of the currency in the single trip pages of WP Travel plugin then you can do so by activating the child theme.

before change currency format

For detail information regarding how to create a child theme, please refer to our Knowledgebase.

After activating the child theme in your child theme’s  functions.php add the below-given code.

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 );



After adding code:

change currency format

Also, if you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on FacebookInstagram, and Twitter.

Further, if you have any queries, please submit them to our Contact page.

create your travel site within minutes by wptravel.io ,buy wptravel pro