wcpbc_currencies

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

Description

(array) apply_filters( 'wcpbc_currencies', (callback) $array ); 

Returns (array)

Parameters (1)

0. $array — Optional. (callback) => array( 'AED' => array('AE'), 'ARS' => array('AR'), 'AUD' => array('AU', 'CC', 'CX', 'HM', 'KI', 'NF', 'NR', 'TV'), 'BDT' => array('BD'), 'BRL' => array('BR'), 'BGN' => array('BG'), 'CAD' => array('CA'), 'CLP' => array('CL'), 'CNY' => array('CN'), 'COP' => array('CO'), 'CZK' => array('CZ'), 'DKK' => array('DK', 'FO', 'GL'), 'DOP' => array('DO'), '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'), 'HKD' => array('HK'), 'HRK' => array('HR'), 'HUF' => array('HU'), 'ISK' => array('IS'), 'IDR' => array('ID'), 'INR' => array('IN'), 'NPR' => array('NP'), 'ILS' => array('IL'), 'JPY' => array('JP'), 'KIP' => array('LA'), 'KRW' => array('KR'), 'MYR' => array('MY'), 'MXN' => array('MX'), 'NGN' => array('NG'), 'NOK' => array('BV', 'NO', 'SJ'), 'NZD' => array('CK', 'NU', 'NZ', 'PN', 'TK'), 'PYG' => array('PY'), 'PHP' => array('PH'), 'PLN' => array('PL'), 'GBP' => array('GB', 'GG', 'GS', 'IM', 'JE'), 'RON' => array('RO'), 'RUB' => array('RU'), 'SGD' => array('SG'), 'ZAR' => array('ZA'), 'SEK' => array('SE'), 'CHF' => array('LI'), 'TWD' => array('TW'), 'THB' => array('TH'), 'TRY' => array('TR'), 'UAH' => array('UA'), 'USD' => array('BQ', 'EC', 'FM', 'IO', 'MH', 'PW', 'TC', 'TL', 'US', 'VG'), 'VND' => array('VN'), 'EGP' => array('EG') )
The array.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'wcpbc_currencies', $array ); 
  2.  
  3. if ( !empty( $array ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the wcpbc_currencies callback 
  2. function filter_wcpbc_currencies( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'wcpbc_currencies', 'filter_wcpbc_currencies', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'wcpbc_currencies', 'filter_wcpbc_currencies', 10, 1 ); 

Defined (1)

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

/includes/wcpbc-functions.php  
  1. apply_filters( 'wcpbc_currencies',