[buddypress-trac] [BuddyPress Trac] #5356: Custom Sort of Group Members

buddypress-trac noreply at wordpress.org
Tue Feb 11 16:01:05 UTC 2014


#5356: Custom Sort of Group Members
-----------------------------------------+------------------------------
 Reporter:  dimensionmedia               |       Owner:
     Type:  enhancement                  |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Groups                       |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |
-----------------------------------------+------------------------------

Comment (by imath):

 Replying to [comment:2 boonebgorges]:
 > I'd prefer if we didn't add filters directly to the SQL query string -
 or, at least, if we didn't add filters *only* there. Is there a way that
 we can build out proper 'order' and 'orderby' support for this method?
 No problem :) i thought it was a nice way to be almost sure to get an
 array or an empty array.
 About order, this ticket #921 might be relative, i'll give a new eye on
 the "old" patch i've suggested for this ticket, i think it can be
 interesting for 2.0.

 Then maybe we can just add a filter to the last line:
 >
 > {{{
 > return apply_filters( 'bp_group_member_query_group_member_ids',
 $this->group_member_ids );
 > }}}
 Yes that's what i've done at the beginning.
 But I think in this case, we should also provide {{{$this->query_vars}}}
 or at least {{{$this->query_vars['group_id']}}} in the filter, so that
 it's easier to request in the same group

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


More information about the buddypress-trac mailing list