Last active
August 21, 2025 12:59
-
-
Save strangerstudios/84967fd8bc6de62d662f to your computer and use it in GitHub Desktop.
Add Russian Ruble to PMPro currencies.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function pmpro_currencies_ruble($currencies) | |
| { | |
| $currencies['RUB'] = __('Russian Ruble (RUB)', 'pmpro'); | |
| return $currencies; | |
| } | |
| add_filter('pmpro_currencies', 'pmpro_currencies_ruble'); |
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
There is missed
'in line 7:add_filter('pmpro_currencies', 'pmpro_currencies_ruble);→add_filter('pmpro_currencies', 'pmpro_currencies_ruble');