Skip Navigation
availability:

WooCommerce Multilingual Version: 4.11.0

description:

Allows overriding the storage strategy. The default storage is wc-session, and the only current alternative is cookie.

type:
filter
category:
Multi-currency Feature
parameters:
‘wc-session’
(string) Storage strategy

$key
(string) The key operating the storage
hook example usage:
// Use Cookie instead of WCSession
add_filter( 'wcml_user_store_strategy', function ( $strategy, $key ) {
	return 'cookie';
}, 10, 2 );