Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Global Variable – Username not ID


nicolagreco
Participant

@nicolagreco

use fullname, username is

global $current_user;

$current_user->username;

$current_user->nicename;

$current_user->display_name;

$current_user->loginname; <= this could be wrong, check the codex

Skip to toolbar