I know this is a very basic, dumb question, but I can't find the answer anywhere. Probably using the wrong keywords... For example:
What tag displays the name of the logged-in user?
Where can I find a list of these tags?
I know this is a very basic, dumb question, but I can't find the answer anywhere. Probably using the wrong keywords... For example:
What tag displays the name of the logged-in user?
Where can I find a list of these tags?
Thanks t31os!
I needed it to prefill form fields in a plugin. I had to put this in the preceding php:
global $current_user;
get_currentuserinfo();
And then this in the form:
<input value="<?php echo $current_user->user_firstname; ?>">
A little more complicated than I'd hoped, but it works.
First link via google... ;) Quicker then trying to search the codex (seems to be lacking a proper search right now).
This topic has been closed to new replies.