[wp-trac] [WordPress Trac] #22921: Allow get_users() to return array of values via 'fields' parameter

WordPress Trac noreply at wordpress.org
Mon Dec 17 07:24:29 UTC 2012


#22921: Allow get_users() to return array of values via 'fields' parameter
-------------------------------------+------------------------------
 Reporter:  chipbennett              |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Users                    |     Version:  3.5
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------

Comment (by DavidAnderson):

 Aah - gotcha. Sorry, I was confusing myself before. You are completely
 right ...

 ... up to a point (unless I'm still confused!).

 What you desire can already be done, using this syntax (which I use in the
 "Use Admin Password" plugin):

 $desired_fields = get_users("fields[]=email");

 So I think we just need to change Codex to give an accurate description,
 rather than re-add the same feature?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22921#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list