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_itinerary_list_before_description

Action :wp_travel_itinerary_list_before_description

Fire before WP Travel itinerary description. Currently using Utilities addon to add itinerary images.

Active Since v1.7.6

Source

File: /inc/admin/views/tabs/tabs-contents/itineraries/itineraries-content.php
Used by: /inc/admin/views/tabs/tabs-contents/itineraries/itineraries-content.php

Parameter
$cnt, $itinerary

Example: 

function prefix_wp_travel_itinerary_list_before_description( $cnt, $itinerary ) {
    esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( 'wp_travel_itinerary_list_before_description', 'prefix_wp_travel_itinerary_list_before_description’  );
Was this article helpful to you? Yes No

How can we help?