25% off ProSNIPC25OFF

EDD: Override Store Currency via Filter

Programmatically sets the EDD store currency to a fixed value, overriding whatever currency is selected in EDD settings.

PHPby SnipCraft
php
<?php
add_filter( 'edd_currency', 'scseed_edd_override_currency' );
function scseed_edd_override_currency( $currency ) {
    if ( ! class_exists( 'Easy_Digital_Downloads' ) ) {
        return $currency;
    }
    // Replace with any valid ISO 4217 currency code, e.g. 'USD', 'EUR', 'GBP'.
    return 'EUR';
}
#currency#edd#localization#payments#settings