Action Hooks Associated With Dashboard Page

Action : wp_travel_dashboard_booking_table_title_after_detail #

This hook allows you to add a custom column in the booking table of WP Travel Dashboard.

Source

File : /templates/account/tab-content/bookings.php

Used by
/templates/account/tab-content/bookings.php

Example :

function prefix_wp_travel_dashboard_booking_table_title_after_detail() {
    echo '<th>New Column</th>'; // Adds new column to the Booking Listings Table on WP Travel Dashboard Page.
}
add_action( 'wp_travel_dashboard_booking_table_title_after_detail', 'prefix_wp_travel_dashboard_booking_table_title_after_detail' );

Action : wp_travel_dashboard_booking_table_content_after_detail #

This hook allows you to add the custom content to the new column created by ‘wp_travel_dashboard_booking_table_title_after_detail’ hook.

Source

File : /templates/account/tab-content/bookings.php

Used by
/templates/account/tab-content/bookings.php

Example :

function prefix_wp_travel_dashboard_booking_table_content_after_detail() {
    echo '<td>data/content</td>'; // Corresponding data to the new columns added.
}
add_action( 'wp_travel_dashboard_booking_table_content_after_detail', 'prefix_wp_travel_dashboard_booking_table_content_after_detail' );

Action : wp_travel_itineraries_after_title #

Source

File : /templates/itineraries-list.php

Used by
/templates/itineraries-list.php

Example :

function prefix_wp_travel_itineraries_after_title( $itinerary ) {
    echo $itinerary['index'];
}
add_action( 'wp_travel_itineraries_after_title', 'prefix_wp_travel_itineraries_after_title' );

Action: wp_travel_dashboard_booking_after_detail #

Fire after dashboard single booking detail.

Source

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

Parameters
$booking_id, $details

Example:

function prefix_wp_travel_dashboard_booking_after_detail( $booking_id, $details ) {
    // Code here.
}
add_action( 'wp_travel_dashboard_booking_after_detail', 'prefix_wp_travel_dashboard_booking_after_detail'  );

Powered by BetterDocs