Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save billrobbins/2337e245e8a45e85dcf235ab606cb72c to your computer and use it in GitHub Desktop.
// Changes the amount of time a WooCommerce Booking can remain in the cart before it is removed. Time is in minutes.
function ijab_change_inactive_cart_bookings_time() {
return 5;
}
add_filter( 'woocommerce_bookings_remove_inactive_cart_time', 'ijab_change_inactive_cart_bookings_time' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment