• Resolved emmamiumiu

    (@emmamiumiu)


    Hi ! Right now my login in user can still access the register page and i’ve tried several ways but nothing seems to work. I would like them to redirect to their profile. Also i’m using a custom template for the register page in my child-theme folder.

    I’ve tried ?wp-admin > ultimate member > user roles > (edit prefered role) > (scroll to registration options) and change setting for “Action to be taken after registration” field to redirect user to a different url once they are registered. (from this post)

    I’ve tried wp-admin > page > edit register page like describe here but with restricted to login in user instead of logout people.

    I’ve tried to change my template to put a condition type : if user is login redirect to profile page, else show register. In register.php

    No success so far. Do you have an idea how to make it works?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support andrewshu

    (@andrewshu)

    Hello @emmamiumiu

    I’ve tried ?wp-admin > ultimate member > user roles > (edit prefered role) > (scroll to registration options) and change setting for “Action to be taken after registration” field to redirect user to a different url once they are registered.

    This is action after registration not always on register page.

    You could use the template_redirect hook. You need to check if user logged in and page id.

    Regards.

    Thread Starter emmamiumiu

    (@emmamiumiu)

    Hi! thanks for the hint, i’ve used the wordpress template_redirect on condition (if is_page is register and user is logged in) and it works!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘redirect login user so they dont see register page’ is closed to new replies.