WP Travel plugin offers built-in pages such as the Checkout Page, Dashboard Page, and Thank You Page to enhance the booking experience on your travel site. However, in the free version of WP Travel, the complete Thank You Page is not included. Instead, users see a Thank You message after completing a booking.

Before changing Thank You message

In the Free Version of WP Travel:

After booking a trip, users will see a Thank You message rather than a full Thank You page. You can easily customize this Thank You message to align with your brand tone or to provide specific instructions to travelers by using a simple filter hook in your theme.

To change the Thank You message after booking a Trip, please add the following filter given code inΒ theΒ functions.phpΒ file of your child theme or simply you can add it throughΒ code snippets.

function wp_travel_booking_messages( $args ) {
  $args = 'We have received Your Booking.';
  return $args;
}
add_filter( 'wp_travel_booked_message', 'wp_travel_booking_messages' );
//Change text (Booking Option : Booking Only )
function wp_travel_booking_message_after( $args ) {
  $args = 'We will contact you soon. Thank You';
  return $args;
}
add_filter( 'wp_travel_booked_message_after_text', 'wp_travel_booking_message_after' );

For detail information regarding how to create a child theme, please refer to our Knowledgebase.

After adding the Filter code:

After changing Thank You message

Also, if you want to learn more about the filter hook that is used to rename fields on the checkout page, please refer specificΒ hook page.

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.

Get WP Travel Pro