wc_session_expiring
Set session expiration.
Usage
add_filter( 'wc_session_expiring', 'wp_kama_wc_session_expiring_filter' ); /** * Function for `wc_session_expiring` filter-hook. * * @param $60 * 60 * 47 * * @return */ function wp_kama_wc_session_expiring_filter( $60 * 60 * 47 ){ // filter... return $60 * 60 * 47; }
- $60 60 47
- -
Where the hook is called
wc_session_expiring
woocommerce/includes/class-wc-session-handler.php 220
$this->_session_expiring = time() + intval( apply_filters( 'wc_session_expiring', 60 * 60 * 47 ) ); // 47 Hours.