woocommerce-cart-stock-reducer
woocommerce-cart-stock-reducer copied to clipboard
Expire items with cron
Rather than waiting for WooCommerce to remove sessions or the user to visit the page again, handle the expirations with cron.
The original reason for not removing from the cart automatically was to provide notices to the user when an item was removed, it might be possible with recent changes to just add a notice to the session and remove the item.
Requested via WordPress forums: https://wordpress.org/support/topic/cart-expire-if-customer-closed-browser