How to Filter Supported Currencies to the Currency List

If, for some reason, the currency you wish to show prices in isn’t supported by CryptoWP, you can use this simple filter to add you language code to the interface.

Keep in mind that CryptoWP uses data from CoinMarketCap and can only show data supported in their API. You can check their API page to see a list of supported language codes, which should all be supported in CryptoWP.

Add this filter to your child theme’s functions.php file or plugin file:

/**
 * Filter additional currencies to Currency List.
 *
 * @since 1.0
 */

function child_theme_currencies() {
	return array(
		'USD',
		'EUR',
		'AUD'
	);
}

add_filter( 'cryptowp_add_currencies', 'child_theme_currencies' );