Login/Logout in menu, directed to a custom login page
-
I currently have the following function on my site to add a login/logout link to the footer menu:
function add_login_logout_link( $items, $args ) { if( $args->theme_location == 'footer-menu' ) { $loginoutlink = wp_loginout('index.php', false); $items .= '<li class="menu-item">'. $loginoutlink .'</li>'; return $items; } return $items; } add_filter( 'wp_nav_menu_items', 'add_login_logout_link', 10, 2 );
I am using WP-Members, I would actually like the login link to go to the page I have designated as the login (which follows the style of my theme, rather than the default WP look). Is there any way I could modify this to work? I’m at a total loss!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Login/Logout in menu, directed to a custom login page’ is closed to new replies.