WPML
apply_filters( 'wcml_price_currency', mixed $empty_value )
Type
filter
WooCommerce Multilingual Version
3.5

Description

  • Get the current currency set on the front-end.
  • This filter is available on the front-end.

Arguments

$empty_value
(mixed) (Required) Normally, this is the value the filter will be modifying. We are not filtering anything here so you should set this to NULL. This argument allows the filter’s function to receive the full list of arguments.

Example usage

A basic example
$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

All 24 Multi-currency Feature hooks →