With the release of WP Travel v8.7.0, a hook has been implemented to enable the display of the start date and end date of the trip. This can be crucial for any travel agency.

Display the start date of the trip

To display the start date and end date of the trip, you can do one of the following:

1. Add the following code in the functions.php file of your child theme.

add_filter( 'wptravel_show_trip_start_and_end_date', function(){ 
  return true; 
} );

2. Or you can simply add it through the code snippets.

For detailed information regarding creating a child theme, please refer to How to Create a Child Theme.

Note: It’s important to note that this method only works for fixed departure dates.

After adding the code, the start date and end date will be displayed as shown in the attached screenshot.

Display the start date and end date of the trip

You may also find this useful: Display Fixed Departure date in single trip page

Overall, this is a helpful new feature in WP Travel that can provide valuable information to users booking trips through a travel agency website.