• Hello,

    on my page I have created a member-area with User Access Manager. To login I use your plugin. Sometimes in my newsletter I sent links to pages in the member-area. But if the member isn’t logged in, he got the message page not found. Is there a way to redirect to the requested page after login?

    thanks!
    Gerd

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author aviplugins.com

    (@avimegladon)

    Redirecting users to requested URL is not available with the plugin. I will try to add this feature in the next update of the plugin.

    Plugin Author aviplugins.com

    (@avimegladon)

    Add this code in the template which you want to restrict for visitors of the site.

    
    if ( !is_user_logged_in() ) {
    wp_redirect('https://www.example.com/login/?redirect='.login_wid::curPageURL());
    exit;
    }
    

    Change “https://www.example.com/login/” to your login page URL.

    With this code users will be redirected to the login page. And after successful login users will be redirected to the requested URL.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘redirect to link for special user group’ is closed to new replies.