• Resolved skoen

    (@skoen)


    I’m helping someone setup a restricted portal, but they would like to exclude one page from requiring login to view.
    The website is using the PMPro as a part of the theme, and this theme has a function called “Enable login privacy”. When this function is enabled, EVERYTHING redirects to the login page, except for the default sign up page.
    We would like to use a different sign up page for sign up, and whitelist this from being redirected to the login page. Is it possible to do so?
    We have tried editing the .htaccess and the code for paid-memberships-pro.php file to no avail:

    				remove_action("login_init", "pmpro_redirect_to_logged_in", 5);
    				//add_filter('pmpro_register_redirect', '__return_false');
    				add_filters( 'pmpro_register_redirect', '/medlemsportal/registrer/' );
    				//apply_filters( 'pmpro_register_redirect', '/medlemsportal/registrer/' );
    				remove_action( 'lostpassword_url', 'wc_lostpassword_url', 10 );
Viewing 1 replies (of 1 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @skoen

    Thank you for reaching out to Paid Memberships Pro.

    I recommend in reaching out to your theme’s support team to assist you with this functionality as we do not offer this feature as a core feature of Paid Memberships Pro. The only page we may redirect for logged-out users is the membership account page.

    You would need to use this guide with Paid Memberships Pro to redirect members away from restricted content if you would like this functionality – https://www.paidmembershipspro.com/redirect-non-members-away-from-member-content/

    I believe that your theme may have an option or filter to choose which pages are allowed to be viewed to logged-out users/non-members.

    Thank you for your patience and understanding.

Viewing 1 replies (of 1 total)
  • The topic ‘Exclude page from require login’ is closed to new replies.