Why get_user_by username not email?
-
Hey,
I’ve edited the plugin callback.php to use
$user = get_user_by( 'email', $user_info->user_email );
rather than$user = get_user_by( 'login', $user_info->user_login );
.I consider the user’s email as their canonical identifier across the sites. I’m not sure why you decided to enforce matched usernames. Hoping I’m not missing something here.
Brian.
- The topic ‘Why get_user_by username not email?’ is closed to new replies.