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

buddypress-trac noreply at wordpress.org
Fri Apr 17 18:11:27 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       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by boonebgorges):

 You should already be able to use the `'bp_pre_user_query'` hook to do
 this.

 `BP_Group_Member_Query` and `bp_group_has_members()` already supports a
 couple of built-in 'type' values - 'type' is basically a preset 'ORDER BY'
 clause. It supports: 'last_joined', 'first_joined', 'newest', 'active',
 'online', 'random', 'popular', 'alphabetical'. If you can think of other
 sort orders that would be useful to build into BP, please feel free to
 make a suggestion.

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


More information about the buddypress-trac mailing list