[buddypress-trac] [BuddyPress Trac] #5839: BP_XProfile_Query - filtering user query results by xprofile field matches

buddypress-trac noreply at wordpress.org
Mon Aug 25 19:17:05 UTC 2014


#5839: BP_XProfile_Query - filtering user query results by xprofile field matches
--------------------------+---------------------------
 Reporter:  boonebgorges  |       Owner:  boonebgorges
     Type:  enhancement   |      Status:  assigned
 Priority:  normal        |   Milestone:  2.2
Component:  XProfile      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+---------------------------

Comment (by r-a-y):

 This is a comment reflecting your awesome patch.  Satisfied? :)

 Looks good though!

 I'm especially a fan of this:

 > The fields that generated a match are also put into the
 BP_User_Query->results array, so that if you want to display the matched
 content in the loop, you don't have to query for it
 (BP_User_Query->results[ user_id ]->xprofile_matched_fields)

 Just got to patch up `xprofile_get_field_data()` to look for this data
 when in the member loop because I hate extra queries :)

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5839#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list