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_before_single_itinerary

Action : wp_travel_before_single_itinerary

This hook lets you to add the content above the featured image in single trip page. The container for thus added content are not in the full width container.

Source

File : /templates/content-single-itineraries.php

Used by
/templates/content-single-itineraries.php

Example :

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

How can we help?