Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#2655 closed enhancement (fixed)

[patch] Exclude parameters and miscellaneous enhancements for bp_has_profile()

Reported by: boonebgorges's profile boonebgorges Owned by: boonebgorges's profile boonebgorges
Milestone: 1.5 Priority: normal
Severity: Version:
Component: Extended Profile Keywords: has-patch needs-testing
Cc:

Description

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.

Attachments (1)

2655.patch (4.2 KB) - added by boonebgorges 14 years ago.

Download all attachments as: .zip

Change History (2)

@boonebgorges
14 years ago

#1 @boonebgorges
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3381]) Adds several exclude parameters to bp_has_profile(). Fixes #2655

Note: See TracTickets for help on using tickets.