The WP Travel plugin offers robust email functionality, allowing you to customize various email templates. If youβre using WP Travel Pro, additional templates such as Invoice, Partial Payment Notifications, and Payment Reminders are also available.
One of the most commonly used templates is the Booking Email, which is sent to both the client and the admin after a trip is booked. You can enhance this email by adding the total price of the trip using a custom email tag.

To add the total trip price, follow the steps below:
Step 1: Add Custom Code to Your Child Theme
Place the following code in your child themeβs functions.php file:
add_filter( 'wp_travel_admin_booking_email_tags', 'wp_travel_added_total_price_booking_mail', 10, 2 );
function wp_travel_added_total_price_booking_mail( $email_tags, $booking_id ) {
$payment_details = wptravel_booking_data( $booking_id );
$total_price = isset( $payment_details['total'] ) ? $payment_details['total'] : 0;
$email_tags['{trip_price}'] = wptravel_get_currency_symbol() . $total_price;
return $email_tags;
}
For detail information regarding how to create a child theme, please refer to our Knowledgebase.
Step 2: Add {trip_price} Tag to the Email Template
After adding the code above, go to:
WP Admin > WP Travel Settings > Email > Booking Email Template
and insert the {trip_price} tag wherever you want the total price to appear in the email body.

The visual form of added email tag

After adding the code and the email tag the total price of the trip will be displayed in the respective booking email.

To explore more about the email feature, please once refer to our official documentation.
Check the WP Travel documentation to learn more about configurations, modules, payments, and shortcodes.
Your feedback helps us improve. Feel free to share your thoughts!
Need assistance? Contact our support team, join our Facebook community, and subscribe to our YouTube Channel for video tutorials.
You can also find us on Facebook, Instagram, LinkedIn, TikTok, and X. Thank you for choosing WP Travel.
If you are a WP Travel Free user thinking about upgrading to Pro, simply click on the banner below.

WP Travel Editorial is a team of WordPress and travel industry experts dedicated to delivering technical resources, travel business guides, and general travel insights. With over 10 years of experience, the team provides in-depth release notes, feature updates, and informative articles to help tour operators and travel enthusiasts succeed in the evolving travel landscape.
From plugin updates and industry trends to practical travel resources, WP Travel Editorial shares valuable content that supports both the travel industry and avid travelers.






