1

If you don't have a problem using a api you can do the following. // check if user IP exists if (!empty($_SERVER['REMOTE_ADDR'])) { // get user data based on IP (not always correct) $user_ip_data = file_get_contents('http://ipinfo.io/' . $_SERVER['REMOTE_ADDR'] . '/json'); // check if is json object if (!empty($user_ip_data) && $...


1

If you create them programmatically, you could set it up so that all of the usernames are one type of email address (business or personal) and the WP email address field contains the other type. It's not clear if this would fit your particular use case, but one other login possibility is to integrate single sign-on. That way they could log in with their ...


Only top voted, non community-wiki answers of a minimum length are eligible