Learn how to update departure and arrival date labels with WP Travel v8.2.0’s latest release. WP Travel provides an all-inclusive booking package for trips and tours, featuring integrated payment gateways.

After completing the booking, the system automatically redirects to a Thank You page, and it sends out confirmation emails about the booking and payment to both the admin and the client.

These emails include a detailed table with key information such as Trip Name, Pax, Departure Date, and Arrival Date, ensuring clear communication.

WP Travel v8.2.0 now allows easy customization of Departure Date and Arrival Date labels using filter code, improving the system’s flexibility and user experience.

Before adding the filter code

Thank you message
Booking Details on the Email
Booking Details on the Email

So, to change the labels of the Departure date and Arrival date, please add the following given code in the functions.php file of your child theme.

Code to rename Departure date label

add_filter(
	'wp_travel_booking_mail_departure', 
            function(){
	      return esc_html( 'Start Date', 'wp-travel' ); 
	    }
);

Code to rename Arrival date label

add_filter(
	'wp_travel_booking_mail_arrival', 
            function(){
	      return esc_html( 'End Date', 'wp-travel' );
	}
);

For detailed information on creating a child theme, please refer to our Knowledgebase.

After Adding the filter code

How to Change Departure and Arrival Date Labels Booking Details on the Thank You Page
Booking Details on the Thank You Page
How to Change Departure and Arrival Date Labels Booking Details on the Email
Booking Details on the Email

With the introduction of WP Travel v8.2.0, customizing the labels for Departure Date and Arrival Date has been made effortlessly possible through the use of filter code, enhancing the flexibility and user experience of the WP Travel system.

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

If you liked this article, then subscribing to our YouTube Channel for WordPress video tutorials would be the cherry on top.

You can also find us on FacebookInstagram, Twitter, LinkedInTikTokPinterest, and our dedicated, engaging Facebook user community.

Further, if you have any queries, please submit them to our contact page.

Get WP Travel Pro and start creating your travel and tour booking website within minutes without any hassle of coding.

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