Viewing 4 replies - 1 through 4 (of 4 total)
  • you can probably do this without even touching the plugins code using the existing hooks built in like the “wsl_hook_process_login_before_redirect” action

    Thread Starter Kat

    (@kativiti)

    hi thanks but where should i put/use this code?

    Thread Starter Kat

    (@kativiti)

    found this in a post but don’t know where to use it…

    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);
    }
    Thread Starter Kat

    (@kativiti)

    added the code to function in my theme and its working.
    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Login Trigger’ is closed to new replies.