[wp-trac] [WordPress Trac] #14118: Get user IDs by meta-data
WordPress Trac
wp-trac at lists.automattic.com
Sun Jun 27 19:27:04 UTC 2010
#14118: Get user IDs by meta-data
-------------------------+--------------------------------------------------
Reporter: filosofo | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.1
Component: Users | Version: 3.0
Severity: normal | Keywords: has-patch
-------------------------+--------------------------------------------------
There should be some way to retrieve user IDs from user meta-data, without
having to query the database directly.
Patch adds function `get_users_by_metadata`:
array '''get_users_by_metadata''' ( string ''$meta_key'' [, string
''$meta_value'' ] )
So, for example, you can do things like:
`$my_user_ids = get_users_by_metadata( 'openid',
'http://filosofo.wordpress.com'); `
or perhaps
`$campaign_referrals = get_users_by_metadata( 'signup_from_ad_campaign'
);`
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14118>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list