[buddypress-trac] [BuddyPress] #4142: Add xprofile fields in bp_get_users

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Apr 11 19:23:33 UTC 2012


#4142: Add xprofile fields in bp_get_users
--------------------------+-----------------------------
 Reporter:  DennisSmolek  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Members       |    Version:  1.5.4
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 While working on a pretty large site Im running a large import of users
 (20,000+) and I'm afraid of going down the wrong path.

 Core WP lets me define any user_meta I want in the meta table, but this
 data isn't then tied back to xprofile data so its not easy to display on
 profiles. It does however let me use get_users() which I can then query
 that meta data and return an array of users.

 Which for example I wanted to pull everyone with the state of TX is very
 easy. If this data was xprofile data its hard to query that data.


 Looking at bp_core_get_users it already joins the xprofile table so
 converting off from "meta_key"/"meta_value" to "field"/"value" shouldn't
 be too bad.

 This would allow a single bp_get_users() to pull users based upon their
 profile data.

 In the mean time I'm adding meta AND xprofile data which is redundant but
 a stop gap until I can either code my own query or bp adds one.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4142>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list