Support » Plugin: Login Logout Menu » Add username to logged in text

Viewing 2 replies - 1 through 2 (of 2 total)
  • I don’t know if there is a specific way to do that with the plugin, but it’s really easy if you edit the php code. Just add the following code where you are sure that a user is logged in.

    $current_user = wp_get_current_user();
    echo “You are logged in as ” . $current_user->user_login;

    You can get much info from that function, as this page shows http://codex.wordpress.org/Function_Reference/wp_get_current_user

    Scott

    (@scottwermter)

    Thanks windmark. I did see this code but I am trying to get it on the menu like this plugin is. I am going to play with the code a bit this afternoon.

    On a side note, Fringe?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add username to logged in text’ is closed to new replies.