WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get userdatabylogin


This pluggable function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also wp-includes/pluggable-deprecated.php. Use get_user_by instead.

Use get_user_by( 'login', $user_login ) instead.

Contents

Description

This function can be replaced via plugins. If plugins do not redefine these functions, then this will be used instead.

Retrieve user info by login name.

Usage

<?php get_userdatabylogin$user_login ?>

Parameters

$user_login
(string) (required) User's username
Default: None

Return Values

(boolean|object) 
False on failure. User DB row object on success.

Notes

  • This function can be replaced via plugins. If plugins do not redefine these functions, then this will be used instead.

Change Log

Since: 0.71. Deprecated since: 3.3.

Source File

get_userdatabylogin() is located in wp-includes/pluggable-deprecated.php.

Related

See Also

get_user_by(), get_currentuserinfo(), get_userdata()

See also index of Function Reference and index of Template Tags.