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 | Owned by: | 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)
Change History (2)
Note: See
TracTickets for help on using
tickets.
(In [3381]) Adds several exclude parameters to bp_has_profile(). Fixes #2655