Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: another function request


r-a-y
Keymaster

@r-a-y

Hey Anointed,

Try this:

global $current_user;

echo $current_user->user_login;

That will get you the current logged-in username and not the display name.

You might want to wrap that around an is_user_logged_in() conditional.

Skip to toolbar