Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.
Hi can you please advise me as to how to redirect users to my homepage after social login.
Thanks
I would like to know how to redirect user to the same page after social registration/login.
Hi there!
e.g. When user connects with Google
$unique_user = $this->unique_user(‘google’, $user_info);
$user_id = $this->new_user( $unique_user , $user_pass, ”, $user_info, $type=’google’ );
userpro_auto_login( $unique_user, true );
wp_redirect( $this->permalink() );
Instead of redirecting to profile you can customize the redirection URL here.
You need to manually set the redirect in api.php for twitter/google+ redirect, and in ajax.php for facebook redirect.
Awesome thanks guys, i can get facebook to work but am not able to get twitter/google+ to work.
Any further help would be great.
You must be logged in to reply to this topic.