apply_filters( 'wcml_price_currency', mixed $empty_value )
- סוג
- filter
- קטגוריה
- תכונת ריבוי מטבעות
- גרסת WooCommerce Multilingual
- 3.5
תיאור
- קבל את המטבע הנוכחי המוגדר בצד הלקוח.
- פילטר זה זמין בצד הלקוח.
ארגומנטים
- $empty_value
- (mixed) (נדרש) בדרך כלל, זהו הערך שהפילטר ישנה. איננו מסננים כאן דבר, ולכן עליך להגדיר זאת ל־NULL. ארגומנט זה מאפשר לפונקציית הפילטר לקבל את רשימת הארגומנטים המלאה.
דוגמה לשימוש
דוגמה בסיסית
$current_currency = apply_filters('wcml_price_currency', NULL );
הוקים קשורים
wcml_custom_prices_fields_labels, wcml_is_cache_enabled_for_switching_currency, 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