Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/29/2015 02:58:47 PM (9 years ago)
Author:
boonebgorges
Message:

Add 'member_typein' and 'member_typenot_in' support to bp_has_members() stack.

Props lakrisgubben.
Fixes #6418.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-functions.php

    r9877 r9976  
    8686 *     @type string       $meta_value      Limit to users with a meta_value (with meta_key). Default: false.
    8787 *     @type array|string $member_type     Array or comma-separated string of member types.
     88 *     @type array|string $member_type__in Array or comma-separated string of member types.
     89 *                                         `$member_type` takes precedence over this parameter.
     90 *     @type array|string $member_type__not_in Array or comma-separated string of member types to be excluded.
    8891 *     @type mixed        $include         Limit results by user IDs. Default: false.
    8992 *     @type int          $per_page        Results per page. Default: 20.
     
    105108        'meta_value'      => false,        // With meta_key, limit to users where usermeta matches this value
    106109        'member_type'     => '',
     110        'member_type__in' => '',
     111        'member_type__not_in' => '',
    107112        'include'         => false,        // Pass comma separated list of user_ids to limit to only these users
    108113        'per_page'        => 20,           // The number of results to return per page
Note: See TracChangeset for help on using the changeset viewer.