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-template.php

    r12692 r12693  
    283283 *
    284284 * @since 1.2.0
    285  * @since 7.0.0 Added `xprofile_query` parameter.
     285 * @since 7.0.0 Added `xprofile_query` parameter. Added `user_ids` parameter.
    286286 *
    287287 * @global object $members_template {@link BP_Members_Template}
     
    311311 *                                                      integer, a comma-separated list of IDs, or false (to disable
    312312 *                                                      this limiting). Default: false.
     313 *     @type array|string|bool     $user_ids            An array or comma-separated list of IDs, or false (to
     314 *                                                      disable this limiting). Default: false.
    313315 *     @type int                   $user_id             If provided, results are limited to the friends of the specified
    314316 *                                                      user. When on a user's Friends page, defaults to the ID of the
     
    372374        'include'             => false,    // Pass a user_id or a list (comma-separated or array) of user_ids to only show these users.
    373375        'exclude'             => false,    // Pass a user_id or a list (comma-separated or array) of user_ids to exclude these users.
     376        'user_ids'            => false,
    374377
    375378        'user_id'             => $user_id, // Pass a user_id to only show friends of this user.
Note: See TracChangeset for help on using the changeset viewer.