Skip to content

Instantly share code, notes, and snippets.

@madeincosmos
Last active July 3, 2018 14:46
Show Gist options
  • Save madeincosmos/a63cadf6667112302797a3be1b05ac59 to your computer and use it in GitHub Desktop.
Save madeincosmos/a63cadf6667112302797a3be1b05ac59 to your computer and use it in GitHub Desktop.
Disable removing inactive bookings from cart
function custom_disable_removing_inactive_bookings ( $time ) {
return 0;
}
add_filter( 'woocommerce_bookings_remove_inactive_cart_time', 'custom_disable_removing_inactive_bookings', 10 );
add_filter( 'woocommerce_bookings_failed_order_expire_scheduled_time_stamp', 'custom_disable_removing_inactive_bookings', 10 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment