I updated:
wordpress-social-login/includes/services/wsl.authentication.php
Before:
if( get_option( 'wsl_settings_bouncer_new_users_restrict_email_enabled' ) == 1 )
I copied the code from later on in the same function and put it just before the restrict_email_enabled:
// because instagram doesn't (do any?) have an email, we need to check if the option "require email" is set and then get the email from
// the user BEFORE we filter by email address
if(
( get_option( 'wsl_settings_bouncer_profile_completion_require_email' ) == 1 && empty( $hybridauth_user_email ) )
||
get_option( 'wsl_settings_bouncer_profile_completion_change_username' ) == 1
)
{
do
{
list
(
$shall_pass,
$requested_user_login,
$requested_user_email
)
= wsl_process_login_complete_registration( $provider, $redirect_to, $hybridauth_user_profile );
}
while( ! $shall_pass );
}
$hybridauth_user_email = $requested_user_email;
I didn’t do extensive testing, but that worked. I prompts for the email address BEFORE trying to “filter” on it.
Again, i’ll see about contributing that back to the original plugin.