Created
October 3, 2017 17:45
-
-
Save lukecav/91ff53d3d228587dfa3e1937670b4f58 to your computer and use it in GitHub Desktop.
Set cart expiration interval to 72 hours in WooCommerce
This file contains 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
add_filter('wc_session_expiring', 'filter_ExtendSessionExpiring' ); | |
add_filter('wc_session_expiration' , 'filter_ExtendSessionExpired' ); | |
function filter_ExtendSessionExpiring($seconds) { | |
return 60 * 60 * 71; | |
} | |
function filter_ExtendSessionExpired($seconds) { | |
return 60 * 60 * 72; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://stackoverflow.com/questions/41167646/woocommerce-set-cart-expiration-interval
Default is 48 hours.