• Resolved antcrescendo

    (@antcrescendo)


    Hello, I would like to know how to redirect a user to a separate page once they are logged in. If a user visits my Login page after being approved to become a member, I would like to redirect them to another page.

    Please see the screenshot below for more details.
    https://postimg.cc/RqWT1k7b

    Let me know if I have configured the settings properly or if something is missing. As of now, once a user visits the login page, they are not redirected and remain on the same page they initially click on.

    Any assistance would be greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support mansurahamed

    (@mansurahamed)

    Hi @antcrescendo,

    For security reason, content restriction will not work in UM login page. For example, if user set wrong settings there, they will be in an infinite redirect loop and won’t be able to login in the page again. You can add following custom code in your child theme’s functions.php file to force logged in user to redirect a different page when try to view the login page

    
    add_action('wp_head','my_custom_login_page_redirect');
    
    function my_custom_login_page_redirect(){
    	if(is_user_logged_in() && um_is_core_page('login')) wp_redirect('https://yourcustompageurl');
    }

    replace https://yourcustompageurl to your actual redirect page url. Thanks.

    • This reply was modified 3 years, 1 month ago by mansurahamed.
    Thread Starter antcrescendo

    (@antcrescendo)

    @mansurahamed Thank you for the support!

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Thanks for letting us know.

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Redirect Logged in users’ is closed to new replies.