Please register us as subscriber our email is ( lizarweb at gmail dot com ). and let us know the URL where your redirecting logged in users.
We will test and get back to you.
Thanks
Okay, I registered you and had it send you an email with the details. I redirected it to this just for testing http://sweepstakescorner.com/disneys-fairy-tale-weddings-sweepstakes/
But, it’s working perfectly.
After login plugin redirecting me to same page (http://sweepstakescorner.com/disneys-fairy-tale-weddings-sweepstakes/)
Thanks
Hmmm, not sure why it didn’t for me. I did try in a different browser and even in an Incognito browser, logged out as admin, and it didn’t do it for me. Maybe it only works for subscribers and not an admin account?
Speaking of that, is there a way to not have admins redirected? I only need regular subscribers redirected but want admins who work on the site to stay on the backend.
Actually, plugin feature works the same as you explained in the last reply.
Redirect User After Login – this feature works for only these user roles like subscriber, editor, contributor, author. This is remian as default for admin role.
Here the plugin code
//check for admins
if ( in_array( 'administrator', $user->roles ) ) {
// redirect admin to the default place
return $redirect_to;
} else {
// redirect users to another place
if($login_redirect_user != "") {
return $login_redirect_user;
} else {
return $redirect_to;
}
}
Awesome, it worked. Thanks for your help in explaining it to me.