Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Filters Associated With Single Itinerary Page
  5. Filter : wp_travel_itinerary_sale_price

Filter : wp_travel_itinerary_sale_price

Source

File : /inc/helpers/helpers-price.php

Used by
/inc/helpers/helpers-price.php

Example :

function wp_travel_customize_sale_price_display( $s, $c, $d ) {
    if ( is_front_page() ) {
        return sprintf( esc_html__('From %1s %2s', 'wp-travel' ), $c , $d );
    }
    return $s;
}
add_filter( 'wp_travel_itinerary_sale_price', 'wp_travel_customize_sale_price_display', 99, 3 );
Was this article helpful to you? Yes No

How can we help?