Cart expiration time (Can I extend it?)
-
Hi, thanks for a great plugin
I would like to extend the cart expiration to greater than 48 hrs.
I have find this code:
add_filter('wc_session_expiring', 'custom_wc_session_expiring'); function custom_wc_session_expiring($seconds) { return 60 * 60 * 24 * 3; // 3 days until the session is marked as "expiring" } add_filter('wc_session_expiration', 'custom_wc_session_expiration'); function custom_wc_session_expiration($seconds) { return 60 * 60 * 24 * 4; // 4 days until the session expires }
I wanted to ask id this would affect the Unique Checkout Links?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Cart expiration time (Can I extend it?)’ is closed to new replies.