Restrict access to pages on wordpress

  • Unknown's avatar

    Hello guys,

    I’m building a woocommerce website.
    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 thing?
    I tried to use the content control plugin but It didn’t work.
    Are there any plugins that restricts access on the URL
    level or do you know any work around for this situation?

    Thank you

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    Please ask for help with this in the WooCommerce forums instead. You can find those over on WordPress.org, at https://wordpress.org/support/forums/

    Just a thought, though – when a logged-out user visits the My Account page on a WooCommerce site, they only see the login/registration form. So if you restrict access to that page, there will be no way for someone who has an account to log into it.

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