• Hello,

    Regarding to your plugin wp-member. I need help with redirection. After log in customer sees two links .

    I need to redirect after log in page to my account page in woocommerce or other way add new link to page after login when customer sees two links (but i would prefer first option):

    – click for log out
    – start using the website

    extra link – my account

    Could you help me with that?

    Best Regards

Viewing 1 replies (of 1 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    You can do a few different things. Here are just some basic starting points.

    First, you could do a redirect. I don’t generally recommend redirecting – and if done, it should be judicious and consider the overall user experience – especially if your use of a redirect affects ALL logins (such as when filtering).

    To redirect from the WP-Members login there are multiple options:

    If you want to change the logged in state of the login form shortcode (the links you mentioned), you can either filter the content using wpmem_login_links_args or wpmem_login_links, or create custom content via the shortcode (which accepts nested content) – for example:

    [wpmem_form login]This is the what will show when logged in[/wpmem_form]

    Keep in mind the nested content is not intended to be used for protecting content (that’s what the [wpmem_logged_in] shortcode is for) – it’s just to offer a simple way to customize the logged in state.

    • This reply was modified 7 years, 2 months ago by Chad Butler.
    • This reply was modified 7 years, 2 months ago by Chad Butler.
Viewing 1 replies (of 1 total)

The topic ‘Redirection after log in’ is closed to new replies.