MemberPress: Restrict Signups to a Specific Country
function limit_signups_to_one_country( $errors ) { // Check if the country field is set and if the country is not UK if( !isset( $_POST[‘mepr-address-country’] ) || $_POST[‘mepr-address-country’] != ‘GB’ ) { $errors[] = ‘Sorry, signups are currently limited to UK only.’;…Continue reading