Restrict Membership Sign Up by Country Code Recipe Banner Image

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 content requires a premium membership plan.