Adding exclude dates for all your trips in WP Travel is a feature that helps you manage your availability effectively, preventing bookings on specific dates.

Additionally, you can add fixed departure dates and trip durations for the trips you add.

WP Travel is a WordPress tour operator plugin for travel and tour agencies to create and publish outstanding tour and travel packages, build detailed itineraries, take tour bookings, receive and process online payments, and much more.

With the latest version, WP Travel v8.4.0, you can now exclude dates for all trips.

If you want to block bookings for particular dates, such as May 1st and May 15th, you can use a function code or simply add it through code snippets.

block bookings for particular dates for Adding exclude dates for all your trips

To block the booking for the specific date, please add the following code in the functions.php file of your child theme.

add_filter( 'wptravel_exclude_booking_dates', function( $excluded_dates ){
	$excluded_dates = array(
		'05/01', // Month/Date	
		'05/15'
	);
	return $excluded_dates;
} );

If you need more information on creating a child theme, please check out our knowledge base.

creating a child theme

Additionally, if you want to learn more about the filter hook available in the WP Travel plugin, refer to the hook page.

Also, 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.

You can get WP Travel Pro to start creating your travel and tour booking website within minutes without any hassle of coding.

Get WP Travel Pro