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_trip_after_booknow

Action : wp_travel_single_trip_after_booknow

This hook is an alternative to ‘wp_travel_single_trip_after_title’ hook which allows you to add your custom text at the bottom of the trip meta info box.

Source

File : /inc/template-functions.php

Introduced on WP Travel version 2.0.4 over wp_travel_single_after_booknow.

Used by
/inc/template-functions.php

Example :

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

How can we help?