Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Checkout: Filter - checkout_currencies Example
function currencies($currencies = array()) {
// remove a currency...
unset($currencies['AUD']);
// add a custom currency...
$currencies['USD'] = array(
'name' => 'US Dollar',
'symbol' => '$',
);
return $currencies;
}
add_filter('checkout_currencies', 'currencies', 10, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment