wcpbc_get_currencies

Return a a array with all currencies avaiables in WooCommerce with associate countries.

Description

(array) wcpbc_get_currencies(); 

Returns (array)


Usage

  1. if ( !function_exists( 'wcpbc_get_currencies' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-product-price-based-on-countries/includes/wcpbc-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wcpbc_get_currencies(); 
  7.  

Defined (1)

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

/includes/wcpbc-functions.php  
  1. function wcpbc_get_currencies() { 
  2.  
  3. return array_unique(  
  4. apply_filters( 'wcpbc_currencies',  
  5. array( 
  6. 'AED' => array('AE'),  
  7. 'ARS' => array('AR'),  
  8. 'AUD' => array('AU', 'CC', 'CX', 'HM', 'KI', 'NF', 'NR', 'TV'),  
  9. 'BDT' => array('BD'),  
  10. 'BRL' => array('BR'),  
  11. 'BGN' => array('BG'),  
  12. 'CAD' => array('CA'),  
  13. 'CLP' => array('CL'),  
  14. 'CNY' => array('CN'),  
  15. 'COP' => array('CO'),  
  16. 'CZK' => array('CZ'),  
  17. 'DKK' => array('DK', 'FO', 'GL'),  
  18. 'DOP' => array('DO'),  
  19. 'EUR' => array('AD', 'AT', 'AX', 'BE', 'BL', 'CY', 'DE', 'EE', 'ES', 'FI', 'FR', 'GF', 'GP', 'GR', 'IE', 'IT', 'LT', 'LU', 'LV', 'MC', 'ME', 'MF', 'MQ', 'MT', 'NL', 'PM', 'PT', 'RE', 'SI', 'SK', 'SM', 'TF', 'VA', 'YT'),  
  20. 'HKD' => array('HK'),  
  21. 'HRK' => array('HR'),  
  22. 'HUF' => array('HU'),  
  23. 'ISK' => array('IS'),  
  24. 'IDR' => array('ID'),  
  25. 'INR' => array('IN'),  
  26. 'NPR' => array('NP'),  
  27. 'ILS' => array('IL'),  
  28. 'JPY' => array('JP'),  
  29. 'KIP' => array('LA'),  
  30. 'KRW' => array('KR'),  
  31. 'MYR' => array('MY'),  
  32. 'MXN' => array('MX'),  
  33. 'NGN' => array('NG'),  
  34. 'NOK' => array('BV', 'NO', 'SJ'),  
  35. 'NZD' => array('CK', 'NU', 'NZ', 'PN', 'TK'),  
  36. 'PYG' => array('PY'),  
  37. 'PHP' => array('PH'),  
  38. 'PLN' => array('PL'),  
  39. 'GBP' => array('GB', 'GG', 'GS', 'IM', 'JE'),  
  40. 'RON' => array('RO'),  
  41. 'RUB' => array('RU'),  
  42. 'SGD' => array('SG'),  
  43. 'ZAR' => array('ZA'),  
  44. 'SEK' => array('SE'),  
  45. 'CHF' => array('LI'),  
  46. 'TWD' => array('TW'),  
  47. 'THB' => array('TH'),  
  48. 'TRY' => array('TR'),  
  49. 'UAH' => array('UA'),  
  50. 'USD' => array('BQ', 'EC', 'FM', 'IO', 'MH', 'PW', 'TC', 'TL', 'US', 'VG'),  
  51. 'VND' => array('VN'),  
  52. 'EGP' => array('EG') 
  53. );