Action Hooks Associated With Cart Page

Action: wp_travel_multiple_time_cart_page #

Hook to support multiple times in cart.

Active Since v3.0.8

Source

File: /templates/content-cart.php
Used by: /templates/content-cart.php

Parameters
$trip, $trip_id, $price_key, $trip[‘arrival_date’]

Example:

function prefix_wp_travel_multiple_time_cart_page( $trip, $trip_id, $price_key, $trip['arrival_date'] ) {
         // Code here.
}
add_action( ‘wp_travel_multiple_time_cart_page', 'prefix_wp_travel_multiple_time_cart_page’ );

Action: wp_travel_action_cart_after_date #

Fire after date and time in cart.

Active Since v3.0.8

Source

File: /templates/content-cart.php
Used by: /templates/content-cart.php

Parameters
$trip, $trip_id

Example:

function prefix_wp_travel_action_cart_after_date( $trip, $trip_id )
{
  // Code here.
}
add_action( ‘wp_travel_action_cart_after_date', 'prefix_wp_travel_action_cart_after_date’ );

Action: wp_travel_cart_before_product_subtotal #

Fire before product subtotal in cart.

Active Since v3.0.4

Source

File: /templates/content-cart.php
Used by: /templates/content-cart.php

Parameters
$args

Example:

function prefix_wp_travel_cart_before_product_subtotal( $args ) {
   // Code here.
}
add_action( ‘wp_travel_cart_before_product_subtotal', 'prefix_wp_travel_cart_before_product_subtotal’ );

Action: wp_travel_tour_extras_cart_block #

Hook to support tour extras in cart.

Source

File: /templates/content-cart.php
Used by: /templates/content-cart.php

Parameters
$trip_extras, $cart_id, $trip_id

Example:

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