Search Documentation

WP Travel Developer Documentation

  1. Home
  2. Docs
  3. WP Travel Developer Documentation
  4. Action Hooks Associated With Singe Itinerary Page
  5. Action : wp_travel_single_before_trip_price

Action : wp_travel_single_before_trip_price

This hook allows you to add your custom text just below the trip title and above the trip price.

Source

File : /inc/template-functions.php

Used by
/inc/template-functions.php

Example :

function prefix_wp_travel_single_before_trip_price() {
    esc_html_e( 'This is the content added using this hook', 'text-domain' );
}
add_action( 'wp_travel_single_before_trip_price', 'prefix_wp_travel_single_before_trip_price'  );
Was this article helpful to you? Yes No

How can we help?