
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.
Author: Kimberly Coleman
Kim is co-founder of Paid Memberships Pro. She has her hand in all aspects of the development, management, and marketing for the product and the team. She oversees frontend development for the core open source plugin and Add Ons.