Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #6418, comment 7


Ignore:
Timestamp:
05/07/2015 10:01:22 AM (10 years ago)
Author:
lakrisgubben
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6418, comment 7

    initial v1  
    11cool @boone, thanks!
    22
    3 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`
     3I'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 (i.e. it ignores the tag parameter) if you pass an empty value to `tag` or `tag__in`
    44
    55Wouldn't a query like `member_type__not_in => bp_get_member_types()` be an easier way to accomplish this?