Skip to content

Instantly share code, notes, and snippets.

@tribulant
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tribulant/7c1ddad733a3528bb7a4 to your computer and use it in GitHub Desktop.
Save tribulant/7c1ddad733a3528bb7a4 to your computer and use it in GitHub Desktop.
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