Last active
July 3, 2018 14:46
-
-
Save madeincosmos/a63cadf6667112302797a3be1b05ac59 to your computer and use it in GitHub Desktop.
Disable removing inactive bookings from cart
This file contains hidden or 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
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