wc_session_expiration filter-hookWC 1.0

Set session expiration.

Usage

add_filter( 'wc_session_expiration', 'wp_kama_wc_session_expiration_filter' );

/**
 * Function for `wc_session_expiration` filter-hook.
 * 
 * @param  $60 * 60 * 48 
 *
 * @return 
 */
function wp_kama_wc_session_expiration_filter( $60 * 60 * 48 ){

	// filter...
	return $60 * 60 * 48;
}
$60 60 48
-

Where the hook is called

WC_Session_Handler::set_session_expiration()
wc_session_expiration
woocommerce/includes/class-wc-session-handler.php 194
$this->_session_expiration = time() + intval( apply_filters( 'wc_session_expiration', 60 * 60 * 48 ) ); // 48 Hours.

Where the hook is used in WooCommerce

Usage not found.