Action Hooks Associated With Tour Extras

Action: wp_travel_extras_pro_extras_layout #

Fire at single itineraries page of WP Travel.

Source

File: /inc/class-wp-travel-extras-frontend.php
Used by: /inc/class-wp-travel-extras-frontend.php

Parameters
$trip_extras, $price_key, $arrival_date, $trip_id

Example:

function prefix_wp_travel_extras_pro_extras_layout( $trip_extras, $price_key, $arrival_date, $trip_id ) {
    esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( 'wp_travel_extras_pro_extras_layout', 'prefix_wp_travel_extras_pro_extras_layout'  );

Action: wp_travel_trip_extras #

Hook to support WP Travel Tour Extra addon.

Active Since v1.5.8

Source

File: /inc/template-functions.php
Used by: /inc/template-functions.php

Parameters
$pricing_key, $arrival_date

Example:

function prefix_wp_travel_trip_extras( $pricing_key, $arrival_date ) {
    // See function tour_extras_frontend( $price_key = false, $arrival_date = false ) for reference.
}
add_action( 'wp_travel_trip_extras', 'prefix_wp_travel_trip_extras'  );

Action: wp_travel_trip_extras_fields #

Hook to add trip extras fields.

Active Since v2.0.3

Source

File: /inc/admin-helper.php
Used by: /inc/admin-helper.php

Parameters
$post_id, $context, $fetch_key, $table_row

Example:

function prefix_wp_travel_trip_extras_fields( $post_id, $context, $fetch_key, $table_row ) {
    esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( 'wp_travel_trip_extras_fields', 'prefix_wp_travel_trip_extras_fields'  );

Action: wp_travel_extras_pro_single_options #

Hook to add options for the tour extra admin section.

Source

File: /inc/admin-helper.php
Used by: /inc/admin-helper.php

Example:

function prefix_wp_travel_extras_pro_single_options() {
    esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( 'wp_travel_extras_pro_single_options', 'prefix_wp_travel_extras_pro_single_options'  );

Fire in WP Travel tour extras general tab.

Active Since v2.0.4

Source

File: /inc/admin/views/tabs/tabs-contents/tour-extras/tour-extras-gallery.php
Used by: /inc/admin/views/tabs/tabs-contents/tour-extras/tour-extras-gallery.php

Example: 

function prefix_wp_travel_tour_extras_gallery_tab_content() {
    esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( ‘wp_travel_tour_extras_gallery_tab_content', 'prefix_wp_travel_tour_extras_gallery_tab_content’ );

Action: wp_travel_extras_pro_options #

Fire at the end of WP Travel tour extras general tab.

Source

File: /inc/admin/views/tabs/tabs-contents/tour-extras/tour-extras-general.php
Used by: /inc/admin/views/tabs/tabs-contents/tour-extras/tour-extras-general.php

Example:

function prefix_wp_travel_extras_pro_options() {
    esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( ‘wp_travel_extras_pro_options', 'prefix_wp_travel_extras_pro_options’ );

Action: wp_travel_tour_extras_mini_cart_block #

Fire in the WP Travel mini cart before coupon discount field.

Active Since v3.0.0

Source

File: /inc/cart/cart-mini.php
Used by: /inc/cart/cart-mini.php

Parameter
$trip_extras, $cart_id, $trip_id, $price_key

Example:

function prefix_wp_travel_tour_extras_mini_cart_block( $trip_extras, $cart_id, $trip_id, $price_key ) {
    esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( ‘wp_travel_tour_extras_mini_cart_block', 'prefix_wp_travel_tour_extras_mini_cart_block’ );

Action Hooks Associated With Tour Extras

Powered by BetterDocs