[buddypress-trac] [BuddyPress] #4482: Better member type support in bp_group_has_members()
buddypress-trac
noreply at wordpress.org
Tue May 14 18:39:33 UTC 2013
#4482: Better member type support in bp_group_has_members()
--------------------------+---------------------------
Reporter: boonebgorges | Owner: boonebgorges
Type: enhancement | Status: assigned
Priority: high | Milestone: 1.8
Component: Groups | Version:
Severity: major | Resolution:
Keywords: needs-patch |
--------------------------+---------------------------
Comment (by r-a-y):
I took a brief look at this yesterday when I posted #5000.
It seems to me that we're duplicating a lot of code for the
`bp_group_has_members()` loop. I was thinking we could probably reuse the
[https://buddypress.trac.wordpress.org/browser/tags/1.7/bp-members/bp-
members-template.php#L264 bp_has_members()] loop and pass only the member
IDs we need to display using the `include` parameter.
The `bp_group_has_members()` loop would support a new parameter of `role`
and we can query for these member IDs and then pass them to
`bp_has_members()`.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4482#comment:7>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list