Created
March 31, 2022 13:03
-
-
Save kerijacoby/4f4a901b82b0889b8a36ddc97f513756 to your computer and use it in GitHub Desktop.
Set the default country to Canada
This file contains 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 | |
function filter_pmpro_default_country( $default_country ) { | |
// Set country code to "CA" for Canada. | |
$default_country = "CA"; | |
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