The checkout page is a crucial component of the booking process on a travel website built using the WP Travel plugin. It is the page where customers finalize their travel booking and proceed with the payment.
Now, with the release of WP Travel v7.5, you can change the text of the checkout page when no trip is selected using the filter code.
You might be interested: Setting of Booking option in the checkout page
Table of contents
Steps to change text of Checkout page when no trips are selected
1. Before adding the filter code

So, to change the text of the checkout page when no trip is selected, please add the following given code in the functions.php file of your child theme or simply you can add it through code snippets.
remove_action( 'wp_travel_cart_empty_message', 'wp_travel_cart_set_empty_message' );
add_action( 'wp_travel_cart_empty_message', 'wp_travel_cart_set_new_empty_message' );
function wp_travel_cart_set_new_empty_message(){
echo "<h4>This is new message</h4>";
$url = get_post_type_archive_link( WP_TRAVEL_POST_TYPE );
echo sprintf( __( 'Your can add new trip. <a href="%s"> click here </a>', 'wp-travel' ), esc_url( $url ) );
}
For detailed information on creating a child theme, please refer to our Knowledgebase.
2. After Adding the filter code

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.
Conclusion
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.






