Add more currencies

#add#currencies#currency

By default we provide all Paypal accepted currencies. In case you need to add more, there is a filter called “ADNI_currencies” that allows you to adjust the available currencies. Add the following code to your theme function.php file and adjust the array like the example value.

// First we hook our own function with the_content event
add_filter( 'ADNI_currencies', 'my_currencies' );
 
// Now add new currencies to the $cur array
function my_currencies( $cur ) {
    
    // Exampleple on how to add a new currency to the array
    $cur['EUR'] => array('value' => 'EUR', 'text' => 'Euro - EUR');

    return $cur;
}