Created
August 16, 2021 11:09
-
-
Save flabernardez/fd02bc6b770b11b5fa8c294d1e3bfd70 to your computer and use it in GitHub Desktop.
#woocommerce finalizar sesión
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
<?php | |
add_filter('wc_session_expiring', 'so_26545001_filter_session_expiring' ); | |
function so_26545001_filter_session_expiring($seconds) { | |
return 60 * 29; // 29 minutos | |
} | |
add_filter('wc_session_expiration', 'so_26545001_filter_session_expired' ); | |
function so_26545001_filter_session_expired($seconds) { | |
return 60 * 30; // 30 minutos | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://stackoverflow.com/questions/26545001/how-to-clear-an-abandoned-woocommerce-cart