• Resolved smpoettgen

    (@smpoettgen)


    Upon logout using Log out page in menu or any log out links in membership pages of PMPro are shown the WP LogIn page. When they log back in via the WP-Login page they can see the Dashboard and toolbar of the site despite having the option checked in settings to not show subscribers the dashboard. When logging in via the PMpro_login page on the frontend it functions as normal. Please advise if this is normal. And if there is a way I can set a redirect once they click on LOG OUT to log them out and redirect to the Home Page or frontend login page? I’m doing this for a non-profit, volunteer run org so can’t afford premium support. Please help! Thank you.

    Version 2.5.2
    WordPress 5.6 running Divi theme.

    • This topic was modified 3 years, 10 months ago by smpoettgen. Reason: Added versions

    The page I need help with: [log in to see the link]

Viewing 4 replies - 16 through 19 (of 19 total)
  • It turns out it does work. There was something else on the server side preventing it.

    Thanks for your time!

    Hi , it no works for me any of the code′s ,
    Neither adding it to a Code Snipper neither on Functions.php

    I always preffer code , but this is a plugin that works for me with current versions of WP and PMPro on July 2021

    Hi all, I’ve added the code snippet, named it and saved and activated to run snippet everywhere.

    But doesnt matter if new browsers or force refresh the logout still redirects to wp_login which is confusing for subscribers.

    Any help appreciated !

    Try adding this to your functions.php file.

    add_action('wp_logout','ps_redirect_after_logout');
    function ps_redirect_after_logout(){
             wp_redirect( 'your redirect here' );
             exit();
    }
Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Logout redirects to WP-login not frontend and users have access to dashboard’ is closed to new replies.