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