Code Samples

How to add new currency and currency symbol

<code class="language-php">
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;
}
</code>