get_woocommerce_currency

Get Base Currency Code.

Description

(string) get_woocommerce_currency(); 

Returns (string)


Usage

  1. if ( !function_exists( 'get_woocommerce_currency' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-core-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = get_woocommerce_currency(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-core-functions.php  
  1. function get_woocommerce_currency() { 
  2. return apply_filters( 'woocommerce_currency', get_option( 'woocommerce_currency' ) );