Username of the current WordPress user is stored in this global variable. It is set using the cookie in the pluggable functions set_current_user($id, $name='') and get_currentuserinfo() defined in [wordpress root folder]/wp-includes/pluggable-functions.php.

It is used to get userdata using the username., e.g., $userdata = get_userdatabylogin($user_login);. The plugin and theme authors need not use this, as the user data is already available in the current_user and other global variables..

Back to full list of global variables.

Technorati tags: , ,

One Response to “user_login”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: