• Resolved karim66

    (@karim66)


    Hello guys,

    I want to prevent logged out users from accessing
    “mysite.com/my-account”
    However, I want to allow logged out users to access
    “mysite.com/my-account/lost-password”

    How I could do such a thing?
    Is it possible with the Content Control plugin?

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Support mark l chaves

    (@mlchaves)

    Hey @karim66,

    If you’re referring to the WooCommerce my-account page, then *no* you cannot.

    You cannot because the WooCommerce my-account page and the WooCommerce my-account/lost-password page are the same pages (just different endpoints).

    So, when you create a restriction for the my-account page, it will also restrict the my-account/lost-password endpoint (using Woo terminology).

    What you can do is:

    – Disable the Woo lost-password endpoint.
    – Create a custom lost password page.
    – Link to that custom lost password page from your login or Content Control denial message.

    We hope that helps.

    Let us know if you need anything else.

    Have a great day 🙂

Viewing 1 replies (of 1 total)

The topic ‘Restrict access to pages on WordPress’ is closed to new replies.