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_content_start

Action : wp_travel_before_content_start

This hook is an alternative to the ‘wp_travel_before_single_itinerary’ hook which allows you to add your custom text above the featured image in single trip page.

Source

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

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

Example :

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

How can we help?