If your bookable products are for a single day, you can opt to hide the ‘Check out’ calendar. The user can then select the day of their booking from a single calendar.
Note that your ‘Booking unit’ must be set to ‘Day’.
To enable this, just add the following snippet:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Display a single calendar | |
* Only for use with single day bookings | |
*/ | |
function prefix_auto_set_end( $auto, $product_id ) { | |
return 'yes'; | |
} | |
add_filter( 'bfwc_auto_set_end', 'prefix_auto_set_end', 10, 2 ); |
Here’s how to add the snippet.