Login/Logout Top Menu Only
-
Hello, I’m using this function from bbpress codex to add login/logout to the menu.
I want to show the login/logout on the top menu only, not on the header. Any way to do this? Hope its just a simple tweak. Thanks
add_filter( ‘wp_nav_menu_items’, ‘rkk_add_auth_links’, 10 , 2 );
function rkk_add_auth_links( $items, $args ) {
if ( is_user_logged_in() ) {
$items_______________________________________________________________________________________
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.