• Resolved commontater

    (@commontater)


    Hello,

    Just looking for some directions.

    My new site has PMPPro (free version), with BuddyBoss and WooCommerce.

    When a subscriber logs out, they remain on whatever page they were viewing while logged in. The only change is that the main menu returns to the non-logged-in menu.

    On Log out, I want to redirect the subscriber to the home page, or optionally, a separate log out page where I tell them that they are logged out and can log back in.

    How do I do this with PMPPro?

    Your assistance is much appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @commontater

    Thank you for using Paid Memberships Pro.

    This would require some custom code to achieve.

    You should be able to use the following code snippet to redirect all user’s to the home page when logging out – https://gist.github.com/andrewlimaza/3bc8a41feed5de1cf2a482e23069e923

    I hope this helps.

    Thread Starter commontater

    (@commontater)

    Hi Andrew,

    Thanks for directing me to this code. I will give it a try.

    I really like PMPPro so far. I have it on two sites, now.

    Ha ha – I just looked at my other site that uses PMPPro, and evidently I used a similar code snippet to do the redirect. (Apologies if I asked you about this twice, now.)

    Your suggestion of adding the code snippet was a good reminder – again, thanks for your help!

    • This reply was modified 2 years, 12 months ago by commontater. Reason: found solution
    Plugin Author Andrew Lima

    (@andrewza)

    You’re most welcome, I’m glad to hear you have figured this one out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PMPPro user log out stays on the last viewed page – want the home page’ is closed to new replies.