woocommerce_currencies filter-hookWC 2.1.0

Filters the list of available currencies.

Usage

add_filter( 'woocommerce_currencies', 'wp_kama_woocommerce_currencies_filter' );

/**
 * Function for `woocommerce_currencies` filter-hook.
 * 
 * @param array $currencies Array of currency codes and names.
 *
 * @return array
 */
function wp_kama_woocommerce_currencies_filter( $currencies ){

	// filter...
	return $currencies;
}
$currencies(array)
Array of currency codes and names.

Changelog

Since 2.1.0 Introduced.

Where the hook is called

get_woocommerce_currencies()
woocommerce_currencies
woocommerce/includes/wc-core-functions.php 516
apply_filters( 'woocommerce_currencies', include WC()->plugin_path() . '/i18n/currencies.php' )

Where the hook is used in WooCommerce

Usage not found.