Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/27/2020 07:46:48 PM (4 years ago)
Author:
boonebgorges
Message:

Add user_ids parameter to bp_has_members() and related functions.

Props Mamaduka.

Fixes #7999.

File:
1 edited

Legend:

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

    r12679 r12693  
    7979 *
    8080 * @since 1.2.0
    81  * @since 7.0.0 Added `xprofile_query` parameter.
     81 * @since 7.0.0 Added `xprofile_query` parameter. Added `user_ids` parameter.
    8282 *
    8383 * @param array|string $args {
     
    9595 *     @type array|string $member_type__not_in Array or comma-separated string of member types to be excluded.
    9696 *     @type mixed        $include             Limit results by user IDs. Default: false.
     97 *     @type mixed        $user_ids            IDs corresponding to the users. Default: false.
    9798 *     @type int          $per_page            Results per page. Default: 20.
    9899 *     @type int          $page                Page of results. Default: 1.
     
    118119        'member_type__not_in' => '',
    119120        'include'             => false,        // Pass comma separated list of user_ids to limit to only these users.
     121        'user_ids'            => false,
    120122        'per_page'            => 20,           // The number of results to return per page.
    121123        'page'                => 1,            // The page to return if limiting per page.
Note: See TracChangeset for help on using the changeset viewer.