WP Travel makes it easy to manage trip details, including Departure Time, which is an important piece of information for your travelers. This short guide will help you Change the Label for the Trip Departure Time.

With the release of WP Travel v9.4.0 and WP Travel Pro v8.4.0, the Trip Departure Time is now displayed on the Thank You page after booking. Previously, you had to use email tags to display this information in confirmation emails.

Learn more: How does the time feature work in WP Travel?

Default Departure Time Label

Default WP Travel plugin's Departure Time Label

With the flexibility of WP Travel, you can also customize the label for the Trip Departure Time to fit your website’s tone or provide clearer communication to your users.

To change the default Departure Time label, add the following code to your functions.php file or by using a code snippet.

add_filter( 'wp_travel_email_departure_time_label', function(){
  return 'Pick up Time: ';
} );

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

This hook changes the label to Pick-up Time. Feel free to replace ‘Pick-up Time:’ with any text that fits your needs (e.g., “Start Time”, “Meeting Time”, etc.).

Departure Time Label After Adding the Hook

Departure Time Lable After Adding the Hook

Conclusion

Changing the label for the Trip Departure Time in WP Travel allows you to create a more personalized or informative user experience. The hook provided is an easy way to customize the label across your site, ensuring consistency and clarity for your travelers.

Check WP Travel documentation to learn more about configurations, modules, payments, shortcodes, and the WP Travel Rest API.

Your feedback helps us improve. Please share your thoughts.

Need assistance? Contact our support team, join our Facebook community, and subscribe to our YouTube Channel for video tutorials. Thank you for choosing WP Travel.

Get WP Travel Pro