WP Travel plugin provides several filters that allow developers to customize various text labels within the booking process. In this knowledge-based article, we’ll walk you through how to customize the labels related to date selection in the WP Travel plugin.

By using simple code snippets, you can change the default text to something more personalized for your website.

Customizing the Main Title of the Date Selection Section

Default Main Title of the Date Selection Section:

Customizing the Main Title of the Date Selection Section

If you’d like to change the main title of the date selection section from its default text, “Select Date and Pricing Options for this trip in the Trip Options setting,” you can do so by adding the following code snippets.

add_filter( 'wp_travel_booking_section_main_title', function(){
	return 'Select Date';
} );

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

This snippet replaces the default main title in the date selection area with “Select Date,” as illustrated in the attached screenshot.

Customized Main Title of the Date Selection Section:

Default main title in the date selection area

Customizing the Date Label

Default Date Label:

Customizing the Date Label

To change the label of the date picker to something more user-friendly, such as “Pick a Date,” add the following code to your child theme’s functions.php file or use a code snippet.

add_filter( 'wp_travel_select_date_label', function(){
	return 'Pick a Date';
} );

This filter updates the label next to the date picker, providing clearer guidance to users selecting a date from the calendar.

Customized Date Label:

Customizing the Date Selection Notice

Default Date Selection Notice:

For more specific instructions, like “Select a Date to view available pricing and other options,” you can use the following code snippets.

add_filter( 'wp_travel_select_date_notice_label', function(){
	return 'Select the date you are willing to travel';
} );

This filter customizes the notice or prompt that appears near the date selection, offering users clear and helpful instructions.

Customized Date Selection Notice:

Conclusion

These simple code snippets allow you to personalize the date selection section of your WP Travel booking process. By tailoring the labels to your website’s branding and tone, you can improve clarity and create a more user-friendly experience for your customers.

Find out what more new features and changes were added in the latest update with our release note.

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 or join our Facebook community. Thank you for choosing WP Travel.

Get WP Travel Pro