#14118 closed enhancement (wontfix)
Get user IDs by meta-data
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.0 |
Component: | Users | Keywords: | has-patch |
Focuses: | Cc: |
Description
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' );
Attachments (1)
Change History (8)
Note: See
TracTickets for help on using
tickets.
I think we should go for a more general get_users() function, similar to get_posts().