Slevin
Slevin

Reputation: 4222

Woocommerce + Multilingual: How to get current currency

I'm building an online shop with Woocommerce and the multilanguage plugin (and activated multi-currency).

The built-in currency switcher works like a charm, but I wonder if there is any way to get the current active currency in PHP? Are there some globals like ICL_LANGUAGE_CODE?

Upvotes: 1

Views: 1720

Answers (1)

Slevin
Slevin

Reputation: 4222

I figured it out: simply use get_woocommerce_currency() to get the the currency code (e.g. USD or EUR)

Upvotes: 2

Related Questions