Skip to:
Content

BuddyPress.org

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#4753 closed defect (bug) (fixed)

Need way to get ALL members of group

Reported by: dennissmolek's profile DennisSmolek Owned by:
Milestone: 1.7 Priority: normal
Severity: normal Version: 1.7
Component: Core Keywords:
Cc: contact@…

Description

Looking at the groups functions we already have groups_get_groups_admins, groups_get_groups_mods, and groups_get_group_members.

Logically you would assume get members would return everyone even the admins/mods but it doesnt.
Analyzing I notice it calls get_all_for_group from the group class which has parameters to exclude mods/admins by default.

Even groups_get_group_members having access to those parameters would be better.

Of course if the preferred method is to just call get_all_for_group disregard this....

Attachments (3)

5f068f72e5a08920cfcc202e569737f43532c8ef.diff (1.5 KB) - added by chrisclayton 12 years ago.
5f068f72e5a08920cfcc202e569737f43532c8ef (1).diff (819 bytes) - added by chrisclayton 12 years ago.
5f068f72e5a08920cfcc202e569737f43532c8ef (1).2.diff (819 bytes) - added by chrisclayton 12 years ago.

Download all attachments as: .zip

Change History (6)

#1 @chrisclayton
12 years ago

I suggest we add all of the parameters, like in the above attachment (not sure why the first one didn't work.)

#2 @boonebgorges
12 years ago

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

(In [6711]) Allow groups_get_group_members() to have access to all params of wrapped method

Fixes #4753

Props chrisclayton

Adds documentation for groups_get_group_members()

#3 @DJPaul
12 years ago

  • Milestone changed from Awaiting Review to 1.7
Note: See TracTickets for help on using tickets.