- This topic has 0 replies, 1 voice, and was last updated 8 years ago by Layer7web.
Viewing 0 reply threads
-
AuthorPosts
-
-
November 15, 2016 at 5:00 pm #2491
Layer7webKeymasterPHP1234567add_filter( 'wp_nav_menu_items', 'wti_loginout_menu_link', 10, 2 );function wti_loginout_menu_link( $items, $args ) {if (is_user_logged_in()) {$items .= '<li class="right"><a href="'. wp_logout_url() .'">'. __("LogOut") .'</a></li>';}return $items;}- This topic was modified 8 years ago by Layer7web.
-
-
AuthorPosts
Viewing 0 reply threads
You must be logged in to reply to this topic.
Comments are closed.