Last active
October 13, 2018 17:52
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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