[buddypress-trac] [BuddyPress] #2655: [patch] Exclude parameters and miscellaneous enhancements for bp_has_profile()

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sat Sep 25 12:44:18 UTC 2010


#2655: [patch] Exclude parameters and miscellaneous enhancements for
bp_has_profile()
--------------------------+-------------------------------------------------
 Reporter:  boonebgorges  |       Owner:  boonebgorges           
     Type:  enhancement   |      Status:  new                    
 Priority:  normal        |   Milestone:  1.3                    
Component:  XProfile      |    Keywords:  has-patch needs-testing
--------------------------+-------------------------------------------------
 This patch adds several additional parameters to bp_has_profile():
 - 'exclude_groups' allows you to specify profile groups to exclude
 - 'exclude_fields' allows you to specify profile fields to exclude
 You can use the two together to nicely customize your profile loop.

 In addition, I noticed that BP_XProfile_Group::get() takes a couple of
 potentially helpful parameters that were, for some reason, not available
 to the loop. So I moved them upstream. In particular, bp_has_profile() now
 also accepts:
 - 'fetch_fields'
 - 'fetch_field_data'
 - 'hide_empty_groups'

 I know that it'll be helpful to me, at least, to have these available to
 the loop in the future.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2655>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list