Skip to content

Instantly share code, notes, and snippets.

@kerijacoby
Created March 31, 2022 13:03
Show Gist options
  • Save kerijacoby/4f4a901b82b0889b8a36ddc97f513756 to your computer and use it in GitHub Desktop.
Save kerijacoby/4f4a901b82b0889b8a36ddc97f513756 to your computer and use it in GitHub Desktop.
Set the default country to Canada
<?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