How do I refer to current user’s name?
I am trying to write a plugin … how do I refer to the currently logged in user’s name? I tried
get_user_name( $user->ID )
but I get “get_user requires a numerical ID” or something like that.
You must be logged in to reply to this topic.