Last active
October 11, 2022 18:40
-
-
Save andrewlimaza/c43351fbce56248112ed3e17ed1cfbec 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 "AU" for Australia. | |
| $default_country = "AU"; | |
| 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