add_filter( 'wcml_is_cache_enabled_for_switching_currency', 'the_callback_function', 10, 1 );
- סוג
- filter
- קטגוריה
- תכונת ריבוי מטבעות
- גרסת WooCommerce Multilingual
- 4.3.3
תיאור
פילטר זה מוסיף ?wcmlc={currency_code} ל־URL, ובכך מגדיר מחרוזת שאילתה עם קוד המטבע. זה שימושי כאשר מופעל מטמון באתר שלך והוא אינו מציג שינויי מטבע כראוי.
ארגומנטים
יש רק פרמטר אחד המועבר לפילטר זה:$enabled
- (bool) הגדר כ־true כדי להפעיל את הפילטר.
דוגמה לשימוש
דוגמה
/** * Enable the query string argument on currency change. */ add_filter( 'wcml_is_cache_enabled_for_switching_currency', '__return_true' );
הוקים קשורים
wcml_custom_prices_fields_labels, wcml_geolocation_get_user_country, wcml_user_store_strategy, 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