wcml_user_store_strategy
- Tipo
- filter
- Categoria
- Funzionalità multivaluta
- Versione di WooCommerce Multilingual
- 4.11.0
Descrizione
Permette di sovrascrivere la strategia di archiviazione. L’archiviazione predefinita è wc-session e l’unica alternativa attuale è cookie.
Argomenti
- ‘wc-session’
- (stringa) Strategia di archiviazione
- $key
- (stringa) La chiave che gestisce l’archiviazione
Esempio di utilizzo
// Use Cookie instead of WCSession
add_filter( 'wcml_user_store_strategy', function ( $strategy, $key ) {
return 'cookie';
}, 10, 2 );
Hook correlati
wcml_custom_prices_fields_labels, wcml_is_cache_enabled_for_switching_currency, wcml_geolocation_get_user_country, wcml_rounded_price, wcml_currencies_without_cents, wcml_product_custom_prices, wcml_custom_prices_strings, wcml_switch_currency, wcml_custom_prices_fields, wcml_multi_currency_ajax_actions