Created
November 22, 2023 16:39
-
-
Save plugin-republic/8ca6852515b329f358749f0dccc9f6e4 to your computer and use it in GitHub Desktop.
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 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment