This code recipe allows you to restrict members in specific countries from signing up.

The restricted countries are defined in a $restricted_countries array of level IDs and country codes (see the $pmpro_currencies array in the plugin file /includes/countries.php for included country codes).


This page requires a Plus Account or higher.

Already have an account?

Log In

New to this site?

Register Now