[buddypress-trac] [BuddyPress Trac] #6418: Introduce functionality to query members by member_type where member_type NOT IN

buddypress-trac noreply at wordpress.org
Thu May 7 09:52:28 UTC 2015


#6418: Introduce functionality to query members by member_type where member_type
NOT IN
---------------------------------+--------------------
 Reporter:  lakrisgubben         |       Owner:
     Type:  enhancement          |      Status:  new
 Priority:  normal               |   Milestone:  2.4
Component:  Component - Members  |     Version:  2.2.3
 Severity:  normal               |  Resolution:
 Keywords:                       |
---------------------------------+--------------------

Comment (by lakrisgubben):

 cool @boone, thanks!

 I'm not sure that passing an empty array to `member_type` is the best way
 (might be wrong though), it seems a bit non-intuitive that an empty array
 would result in getting all members without a member_type. Looking at how
 WP_Query handles tags (which is the only default thing that can be empty,
 seeing as how a category and author is always set) it doesn't do anything
 at all if you pass an empty value to `tag` or `tag__in`

 Wouldn't a query like `member_type__not_in => bp_get_member_types()` be an
 easier way to accomplish this?

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


More information about the buddypress-trac mailing list