Hi George,
I’m sorry to hear that it caused an issue, Ill check it today and see what is the issue.
Cheers,
Gabriel
Or you can trigger the action wp_login.
add_action('wsl_hook_process_login_before_redirect', 'wplflogin_afterconnect', 10, 3);
function wplflogin_afterconnect($user_id, $provider, $hybridauth_user_profile){
$user_login = get_userdata($user_id);
do_action('wp_login', $user_login->user_login);
}
the wp_login hook is not called after the connect.
I did some research and thats how i resolved my issue:
add_action('wsl_hook_process_login_before_redirect', 'wplogin_myplugin_afterconnect', 10, 3);
function wplogin_myplugin_afterconnect($user_id, $provider, $hybridauth_user_profile){
update_user_meta($user_id, 'last_login', current_time('mysql'));
}
This is a small example i hope it helps.