Skip to content

Instantly share code, notes, and snippets.

@manchumahara
Last active October 13, 2018 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manchumahara/f3e18e280e112b9097a1a56b2143b521 to your computer and use it in GitHub Desktop.
Save manchumahara/f3e18e280e112b9097a1a56b2143b521 to your computer and use it in GitHub Desktop.
How to add new currency to CBX Currency converter for wordpress https://codeboxr.com/product/cbx-currency-converter-for-wordpress/
add_filter('cbcurrencyconverter_currency_list', 'cbcurrencyconverter_currency_list_extend');
/**
* Add New Currency support
*
* @param $currency_list
*
* @return mixed
*/
public function cbcurrencyconverter_currency_list_extend($currency_list){
if(!isset($currency_list['JOD'])){
$currency_list['JOD'] = 'Jordanian Dinar';
}
return $currency_list;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment