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 of 2024 and May 15th of 2025, 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/2024', // Month/Date/Year	
		'05/15/2025'
	);
	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.

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

Your feedback helps us improve. Feel free to share your thoughts!

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

You can also find us on Facebook, Instagram, LinkedIn, TikTok, and X. Thank you for choosing WP Travel.

If you are a WP Travel Free user thinking about upgrading to Pro, simply click on the banner below.

Get WP Travel Pro