wc_session_expiring filter-hookWC 1.0

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_Handler::set_session_expiration()
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.

Where the hook is used in WooCommerce

Usage not found.