[buddypress-trac] [BuddyPress Trac] #6378: bp_group_has_members ORDER BY

buddypress-trac noreply at wordpress.org
Fri Apr 17 17:30:40 UTC 2015


#6378: bp_group_has_members ORDER BY
-------------------------+-----------------------------
 Reporter:  baldgoat     |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  API          |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 I'd like to be able to modify the ORDER BY on the members returned by
 bp_group_has_members(), Either through the args array or adding a filter.

 For example, order by role (admins, mods, members)

 Potentially, an apply_filters on $sql could be added before this line in
 the get_group_members_ids method of the BP_Group_Member_Query class...

 $this->group_member_ids = $wpdb->get_col( "{$sql['select']}
 {$sql['where']} {$sql['orderby']} {$sql['order']}" );

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6378>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list