Better WP_User_Query search
|Reported by:||gluten||Owned by:|
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.
Change History (6)
- Summary changed from Better get_users() search to Better WP_User_Query search