• Resolved JLent14

    (@jlent14)


    Hello,

    When setting up this plug in have the Log In | Log Out set but I once a user clicks it goes to the default wp-login.php page. How do I make this go to my /login form I’m using with Ultimate Member? Where do the shortcodes go if needed? I still want only logged out users to see Log In and logged in users to see Log Out. Is this also possible to make the Registration in the nav menu disappear when logged in?

    Thank you

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

Viewing 1 replies (of 1 total)
  • Plugin Support Muhammad Arslan

    (@wparslan)

    Hey @jlent14

    Apologies for the late reply.

    This is not the default behavior of the Login Logout Menu plugin.

    Nothing to worry about, just go to your menus and add the Log In | Log Out Menu.
    To redirect the user to /login page just add the following piece of code in the functions.php of your child theme.

    Login to /login.

    add_filter( 'login_logout_menu_login', 'login_logout_menu_login_cb' );
    
    /**
     * Customize the login/logout menu Login Link.
     *
     * @param string $login_logout_menu_login The login link.
     * @return string The modified login link.
     */
    function login_logout_menu_login_cb( $login_logout_menu_login ) {
    	return site_url() . '/login';
    }

    Log Out to /login

    add_filter( 'login_logout_menu_logout', 'login_logout_menu_logout_cb' );
    
    /**
     * Customize the login/logout menu Login Link.
     *
     * @param string $login_logout_menu_logout The login link.
     * @return string The modified login link.
     */
    function login_logout_menu_logout_cb( $login_logout_menu_logout ) {
    	return site_url() . '/login';
    }
    

    The Registration link also hides when a user is logged in. It only shows when a user is not yet logged in.

    Here is helping documentation [ https://loginpress.pro/doc/login-logout-menu-free/ ].

    If you need any assistance do let us know.

Viewing 1 replies (of 1 total)
  • The topic ‘Redirect Login Once Clicked to UM Login Page’ is closed to new replies.