Changeset 12693
- Timestamp:
- 07/27/2020 07:46:48 PM (4 years ago)
- Location:
- trunk/src/bp-members
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-functions.php
r12679 r12693 79 79 * 80 80 * @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. 82 82 * 83 83 * @param array|string $args { … … 95 95 * @type array|string $member_type__not_in Array or comma-separated string of member types to be excluded. 96 96 * @type mixed $include Limit results by user IDs. Default: false. 97 * @type mixed $user_ids IDs corresponding to the users. Default: false. 97 98 * @type int $per_page Results per page. Default: 20. 98 99 * @type int $page Page of results. Default: 1. … … 118 119 'member_type__not_in' => '', 119 120 'include' => false, // Pass comma separated list of user_ids to limit to only these users. 121 'user_ids' => false, 120 122 'per_page' => 20, // The number of results to return per page. 121 123 'page' => 1, // The page to return if limiting per page. -
trunk/src/bp-members/bp-members-template.php
r12692 r12693 283 283 * 284 284 * @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. 286 286 * 287 287 * @global object $members_template {@link BP_Members_Template} … … 311 311 * integer, a comma-separated list of IDs, or false (to disable 312 312 * 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. 313 315 * @type int $user_id If provided, results are limited to the friends of the specified 314 316 * user. When on a user's Friends page, defaults to the ID of the … … 372 374 'include' => false, // Pass a user_id or a list (comma-separated or array) of user_ids to only show these users. 373 375 'exclude' => false, // Pass a user_id or a list (comma-separated or array) of user_ids to exclude these users. 376 'user_ids' => false, 374 377 375 378 'user_id' => $user_id, // Pass a user_id to only show friends of this user. -
trunk/src/bp-members/classes/class-bp-core-members-template.php
r12692 r12693 111 111 * 112 112 * @since 1.5.0 113 * @since 7.0.0 Added $xprofile_query parameter. 113 * @since 7.0.0 Added $xprofile_query parameter. Added $user_ids parameter. 114 114 * 115 115 * @see BP_User_Query for an in-depth description of parameters. … … 163 163 'populate_extras' => true, 164 164 'exclude' => false, 165 'user_ids' => false, 165 166 'meta_key' => false, 166 167 'meta_value' => false, … … 191 192 'populate_extras' => $r['populate_extras'], 192 193 'exclude' => $r['exclude'], 194 'user_ids' => $r['user_ids'], 193 195 'meta_key' => $r['meta_key'], 194 196 'meta_value' => $r['meta_value'],
Note: See TracChangeset
for help on using the changeset viewer.