Support » Plugin: Custom Login Page Customizer » Login Redirect

  • Resolved Duane Bentzen

    (@dbentzen)


    Hello Support,

    I’d like to redirect the Login button to a specific page on my site. Is there a way to do that? I’d like a login to go to the WooCommerce account page:

    https://twistedsocial.com/my-account/

    Thanks in advance,

    – Duane Bentze

    The page I need help with: [log in to see the link]

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

    (@wpzainab)

    Hi @dbentzen

    Currently, Login Customizer doesn’t have this functionality of redirecting to a page after login however we have noticed this feature and will add it in the next update as well. ✌

    Plugin Support Abdul Wahab

    (@abdulwahab610)

    Hey, @dbentzen

    Do you want to redirect user to WC login form instead of WP login page?
    If yes, you can use the Login Init Hook.

    For this, use the following code snippet into your child themes functions.php

    add_action( 'login_init', 'user_redirect_login_init' );
    function user_redirect_login_init() {
         if( ! is_user_logged_in() ) {
            wp_redirect( '/my-account' );
            exit;
          }
    }

    Thank you.

    • This reply was modified 7 months, 4 weeks ago by Abdul Wahab.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Login Redirect’ is closed to new replies.