WP Travel plugin provides the feature regarding the Checkout page, WP Travel Dashboard Page, and Thank You Page which you can add to your site but Thank You message will only be displayed instead of Thank You page in the case of WP Travel free plugin. If you are willing to change the Thank you message then worry, not WP Travel plugin provides the feature regarding changing the Thank you message.

Before changing Thank You message

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.

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 once refer specific hook page.

Further, if you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on FacebookInstagram, and Twitter.

Additionally, if you have any queries, please submit them to our Contact page.

create your travel site within minutes by wptravel.io ,buy wptravel pro