Action Hooks Associated With Booking

Action: wp_travel_after_bookings_travel_date #

Hook to add booking time details at booking.

Source

File: /inc/helpers.php
Used by: /inc/helpers.php

Parameters
$booking_id

Example:

function prefix_wp_travel_after_bookings_travel_date( $booking_id ) {
    // Code here.
}
add_action( 'wp_travel_after_bookings_travel_date', 'prefix_wp_travel_after_bookings_travel_date'  );

Action: wp_travel_after_deleting_booking_transient #

Fires after clearing booking transient.

Active Since v1.0.6

Source

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

Example:

function prefix_wp_travel_after_deleting_booking_transient() {
    // Code here.
}
add_action( 'wp_travel_after_deleting_booking_transient', 'prefix_wp_travel_after_deleting_booking_transient'  );

Action: wp_travel_booking_after_select_button #

Fires after single itinerary select button.

Active Since v1.9.3

Source

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

Parameters
$trip_id, $pricing[‘price_key’]

Example:

function prefix_wp_travel_booking_after_select_button( $trip_id, $pricing['price_key'] ) {
    esc_html_e( ‘This is content added using this hook’, ‘text-domain’ );
}
add_action( 'wp_travel_booking_after_select_button', 'prefix_wp_travel_booking_after_select_button'  );

Action: wp_travel_action_after_trash_booking #

Hook to update current booking inventory data. Fire after deleting booking count transient.

Active Since v2.0.3

Source

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

Parameters
$booking_id

Example:

function prefix_wp_travel_action_after_trash_booking( $booking_id ) {
    // Code here.
}
add_action( 'wp_travel_action_after_trash_booking', 'prefix_wp_travel_action_after_trash_booking'  );

Action: wp_travel_action_after_untrash_booking #

Hook to update current booking inventory data. Fire after deleting booking count transient.

Active Sincev2.0.3

Source

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

Parameters
$booking_id

Example:

function prefix_wp_travel_action_after_untrash_booking( $booking_id ) {
    // Code here.
}
add_action( 'wp_travel_action_after_untrash_booking', 'prefix_wp_travel_action_after_untrash_booking'  );

Action: wp_travel_booking_default_princing_list #

Hook to show the default pricing list type in the booking tab frontend.

Source

File: /templates/content-pricing-options.php
Used by: /templates/content-pricing-options.php

Parameters
$trip_id

Example:

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

Action: wp_travel_booking_fixed_departure_list #

Hook to show the departure list type in the booking tab frontend.

Source

File: /templates/content-pricing-options.php
Used by: /templates/content-pricing-options.php

Parameters
$trip_id

Example:

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