Skip to content

Instantly share code, notes, and snippets.

@strangerstudios
Last active April 14, 2021 19:25
Show Gist options
  • Save strangerstudios/84967fd8bc6de62d662f to your computer and use it in GitHub Desktop.
Save strangerstudios/84967fd8bc6de62d662f to your computer and use it in GitHub Desktop.
Add Russian Ruble to PMPro currencies.
function pmpro_currencies_ruble($currencies)
{
$currencies['RUB'] = __('Russian Ruble (RUB)', 'pmpro');
return $currencies;
}
add_filter('pmpro_currencies', 'pmpro_currencies_ruble');
@PersonaA
Copy link

There is missed ' in line 7:
add_filter('pmpro_currencies', 'pmpro_currencies_ruble);
add_filter('pmpro_currencies', 'pmpro_currencies_ruble');

@laurenhagan0306
Copy link

This recipe is included in the blog post on "Add and Set a New Default Currency using $pmpro_currencies" at Paid Memberships Pro here: https://www.paidmembershipspro.com/add-and-set-a-new-default-currency-using-pmpro_currencies/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment