This topic has 1 reply, 2 voices, and was last updated 9 years by Andrei.

  • Author
  • #60452
     tgspijkerboer
    Participant

    Hi there,

    I have read: http://seventhqueen.com/blog/code-snippets/restrict-guest-users-from-accessing-buddypress-or-bbpress-pages.html#comment-45
    and wonder if it’s possible to redirect users back to the page they were trying to access at first before they were redirected to the login form.
    So this is for a use case in which the users receive a link to restricted content in their email and the website will ask them to login before proceeding to the requested page.
    Can this be done by extending the snippet as mentioned or in another way?

    The website is mindlift.me

    Thanks in advance

    #62768
     Andrei
    Moderator

    If you want to force your users to login in order to see your content you could just lock the content using Paid Membership Pro plugin user levels and then when a non-logged user will try to access a certain locked post/page, they will firstly have to login in order to view that post.

    Please let me know if I can help you with anything else.
    Cheers

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?