[wp-trac] [WordPress Trac] #18183: Better get_users() search
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 20 15:14:26 UTC 2011
#18183: Better get_users() search
-------------------------+-----------------------------
Reporter: gluten | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.2.1
Severity: minor | Keywords:
-------------------------+-----------------------------
The get_users() function only searches 'user_login' and 'user_nicename'
(when searching for a user by name). There is no way to search users by
their display name. Including 'display_name' would make searching with
get_users() much more intuitive, since in my experience users tend to be
known by their display name and not necessarily their login. In theory I
could do a meta_query for fields such as first and last name, but I can't
find an easy way to query 'display_name' since it is not on the 'usermeta'
table.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18183>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list