Skip to content

Instantly share code, notes, and snippets.

@andrewlimaza
Last active October 11, 2022 18:40
Show Gist options
  • Select an option

  • Save andrewlimaza/c43351fbce56248112ed3e17ed1cfbec to your computer and use it in GitHub Desktop.

Select an option

Save andrewlimaza/c43351fbce56248112ed3e17ed1cfbec to your computer and use it in GitHub Desktop.
PMPRO change default country
<?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