To get the username of logged in user.
$user = get_userdata(get_current_user_id());
$username = $user->user_login;
Thanks!
Is it possible to remove the author/profile base and just have site.com/authorname if so how?
I am still trying to find a clean way to support root usernames. Thanks 🙂
What’s the dirty way, I can probably live with it 😀
You must be logged in to reply to this topic.