- Action : wp_travel_before_main_content
- Action : wp_travel_after_main_content
- Action : wp_travel_before_single_itinerary
- Action : wp_travel_after_single_itinerary
- Action : wp_travel_before_content_start
- Action : wp_travel_before_single_title
- Action : wp_travel_single_trip_after_title
- Action : wp_travel_single_before_trip_price
- Action : wp_travel_single_trip_after_price
- Action : wp_travel_single_trip_meta_list
- Action : wp_travel_single_trip_after_booknow
- Action : wp_travel_single_trip_after_header
- Action : wp_travel_before_trip_details
- Action : wp_travel_trip_details
- Action : wp_travel_review_before_comment_text
- Action : wp_travel_review_after_comment_text
- Action: wp_travel_action_additional_pricing_attributes
- Action: wp_travel_itinerary_list_before_description
- Action: wp_travel_itinerary_list_template_before_description
Action : wp_travel_before_main_content #
This hook lets you to add the content above the featured image in single trip page. The content are added in a full width container.
Source
File : /templates/archive-itineraries.php
Used by |
/templates/archive-itineraries.php |
/templates/single-itineraries.php |
Example :
function prefix_wp_travel_before_main_content() {
esc_html_e( 'This is the content added using this hook', 'text-domain' );
}
add_action( 'wp_travel_before_main_content', 'prefix_wp_travel_before_main_content' );
Action : wp_travel_after_main_content #
This hook lets you to add the content below the Related Trip section in single trip page. The content are added in a full width container.
Source
File : /templates/archive-itineraries.php
Used by |
/templates/archive-itineraries.php |
/templates/single-itineraries.php |
Example :
function prefix_wp_travel_after_main_content() {
esc_html_e( 'This is the content added using this hook', 'text-domain' );
}
add_action( 'wp_travel_after_main_content', 'prefix_wp_travel_after_main_content' );
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' );
Action : wp_travel_after_single_itinerary #
This hook is an alternative to the ‘wp_travel_after_main_content’ hook which allows you to add your custom text below the “Related Trip” section in single trip page.
Source
File : /templates/content-single-itineraries.php
Used by |
/templates/content-single-itineraries.php |
Example :
function prefix_wp_travel_after_single_itinerary( $post_id ) {
esc_html_e( 'This is the content added using this hook', 'text-domain' );
}
add_action( 'wp_travel_after_single_itinerary', 'prefix_wp_travel_after_single_itinerary' );
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' );
Action : wp_travel_before_single_title #
This hook allows you to add your custom text just above the title of the trip in single trip page.
Source
File : /templates/content-single-itineraries.php
Used by |
/templates/content-single-itineraries.php |
Example :
function prefix_wp_travel_before_single_title( $post_id ) {
esc_html_e( 'This is the content added using this hook', 'text-domain' );
}
add_action( 'wp_travel_before_single_title', 'prefix_wp_travel_before_single_title' );
Action : wp_travel_single_trip_after_title #
This hook allows you to add your custom text just below the “Trip Code” i.e at the bottom of the trip meta info section.
Source
File : /templates/content-single-itineraries.php
Used by |
/templates/content-single-itineraries.php |
Example :
function prefix_wp_travel_single_trip_after_title() {
esc_html_e( 'This is the content added using this hook', 'text-domain' );
}
add_action( 'wp_travel_single_trip_after_title', 'prefix_wp_travel_single_trip_after_title' );
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' );
Action : wp_travel_single_trip_after_price #
This hook allows you to add your custom content aside the trip price detail section.
Source
File : /inc/template-functions.php
Used by |
/inc/template-functions.php |
Example :
function prefix_wp_travel_single_trip_after_price() {
esc_html_e( 'This is the content added using this hook', 'text-domain' );
}
add_action( 'wp_travel_single_trip_after_price', 'prefix_wp_travel_single_trip_after_price' );
Action : wp_travel_single_trip_meta_list #
This hook allows you to add your custom contents just above the ‘Trip enquiry’ and ‘Book Now’ button and below the trip meta info box in single trip page.
Source
File : /inc/template-functions.php
Introduced on WP Travel version 2.0.4
over wp_travel_single_itinerary_after_trip_meta_list
.
Used by |
/inc/template-functions.php |
Example :
function prefix_wp_travel_single_trip_meta_list() {
esc_html_e( 'This is the content added using this hook', 'text-domain' );
}
add_action( 'wp_travel_single_trip_meta_list', 'prefix_wp_travel_single_trip_meta_list' );
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);
Action : wp_travel_single_trip_after_header #
This hook allows you to add your custom content just above the tabs section of single trip page.
Source
File : /templates/content-single-itineraries.php
Introduced on WP Travel version 2.0.4
over wp_travel_after_single_itinerary_header
.
Used by |
/templates/content-single-itineraries.php |
Example :
function prefix_wp_travel_single_trip_after_header() {
esc_html_e( 'This is the content added using this hook', 'text-domain' );
}
add_action( 'wp_travel_single_trip_after_header', 'prefix_wp_travel_single_trip_after_header' );
Action : wp_travel_before_trip_details #
This hooks allows you to add your custom content in trip overview section
Source
File : /inc/template-functions.php
Used by |
/inc/template-functions.php |
Example :
function prefix_wp_travel_before_trip_details() {
esc_html_e( 'This is the content added using this hook', 'text-domain' );
}
add_action( 'wp_travel_before_trip_details', 'prefix_wp_travel_before_trip_details' );
Action : wp_travel_trip_details #
This hook lets you add the custom content in trip overview content.
Source
File : /inc/template-functions.php
Used by |
/inc/template-functions.php |
Example :
function prefix_wp_travel_trip_details() {
esc_html_e( 'This is the content added using this hook', 'text-domain' );
}
add_action( 'wp_travel_trip_details', 'prefix_wp_travel_trip_details' );
Action : wp_travel_review_before_comment_text #
This hook allows you to add a text before the review comment.
Source
File : /templates/review.php
Used by |
/templates/review.php |
Example :
function prefix_wp_travel_review_before_comment_text( $comment ) {
echo '<p>This text is added before comment text</p>'; // Adds the content before comments.
}
add_action( 'wp_travel_review_before_comment_text', 'prefix_wp_travel_review_before_comment_text' );
Action : wp_travel_review_after_comment_text #
This hook allows you to add a comment just below the review and the gravatar image section.
Source
File : /templates/review.php
Used by |
/templates/review.php |
Example :
function prefix_wp_travel_review_after_comment_text( $comment ) {
echo '<p>This paragraph is added after comment text</p>'; // Adds the content after comments.
}
add_action( 'wp_travel_review_after_comment_text', 'prefix_wp_travel_review_after_comment_text' );
Action: wp_travel_action_additional_pricing_attributes #
Hooks for additional pricing attributes in a single trip page.
Active Since v3.0.8
Source
File: /inc/template-functions.php
Used by: /inc/template-functions.php
Parameters
$trip_id
Example:
function prefix_wp_travel_action_additional_pricing_attributes( $trip_id ) {
// Code here.
}
add_action( 'wp_travel_action_additional_pricing_attributes', 'prefix_wp_travel_action_additional_pricing_attributes' );
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’ );
Action: wp_travel_itinerary_list_template_before_description #
Fire before WP Travel itinerary description repeater. 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
$uid
Example:
function prefix_wp_travel_itinerary_list_template_before_description( $uid ) {
esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( 'wp_travel_itinerary_list_template_before_description', 'prefix_wp_travel_itinerary_list_template_before_description’ );