get_user_by Wordpress function


Description:

Retrieve user info by a given field


Syntax:


Arguments:

(string) $field The field to retrieve the user with. id | slug | email | login
(int|string) $value A value for $field. A user ID, slug, email address, or login name.


Return Type:

(bool|object) False on failure, WP_User object on success


Define At:

wp-includes/pluggable.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/get_user_by


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×