title: How to show user name on menu when member's logged in to wordpress
body: <p>In my site I made two different menus. One is for visitors and the other is for logged in members. Here are the codes I've used - </p>
  
  <pre><code>&lt;php?
  if( is_user_logged_in() ) {
  $menu = 'Login Menu';}
  else {
  $menu = 'Main Menu'; }
  wp_nav_menu( array( 'menu' =&gt; $menu, 'container_class' =&gt; 'menu-header', 'theme_location' =&gt; 'primary' ) ); ?&gt;
  </code></pre>
  
  <p>Now on " Main Menu " I have a button called " Register ". And a button named " Log In ". I want to make this button appears as " Welcome [Login Member's name] " and " Sign Out " respectively when a member log in. And as far as I know this code will go under the " Login Menu ", So how can I do that ?</p>