Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Created November 22, 2023 16:39
Show Gist options
  • Save plugin-republic/8ca6852515b329f358749f0dccc9f6e4 to your computer and use it in GitHub Desktop.
Save plugin-republic/8ca6852515b329f358749f0dccc9f6e4 to your computer and use it in GitHub Desktop.
<?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