WPML
wcml_user_store_strategy
Typ
filter
Version von WooCommerce Multilingual
4.11.0

Beschreibung

Ermöglicht das Überschreiben der Speicherstrategie. Der Standardspeicher ist wc-session und die einzige aktuelle Alternative ist cookie.

Argumente

‘wc-session’
(String) Speicherstrategie
$key
(String) Der Key, der den Speicher steuert

Anwendungsbeispiel

// Use Cookie instead of WCSession
add_filter( 'wcml_user_store_strategy', function ( $strategy, $key ) {
	return 'cookie';
}, 10, 2 );

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

Alle 24 Mehrwährungsfunktion-Hooks →