Forked from andrewlimaza/pmpro-change-default-country.php
Last active
July 29, 2020 15:55
-
-
Save femiyb/361829438c9a3408319827ae122fac26 to your computer and use it in GitHub Desktop.
PMPRO change default country
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
| <?php | |
| //copy lines 5 - 12 into your theme's functions.php or custom plugin | |
| function filter_pmpro_default_country( $default_country ) { | |
| // Set country code to "JP" for Japan. | |
| $default_country = "JP"; | |
| return $default_country; | |
| } | |
| add_filter( 'pmpro_default_country', 'filter_pmpro_default_country' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment