Changeset 10022 for trunk/src/bp-xprofile/bp-xprofile-template.php
- Timestamp:
- 07/21/2015 02:00:38 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-xprofile/bp-xprofile-template.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-template.php
r10015 r10022 111 111 112 112 /** 113 * Get activity items, as specified by parameters 113 * Get activity items, as specified by parameters. 114 * 115 * @see BP_XProfile_Group::get() for more details about parameters. 116 * 117 * @since BuddyPress (2.4.0) Introduced `$member_type` argument. 114 118 * 115 119 * @param array $args { 116 120 * An array of arguments. All items are optional. 117 121 * 118 * @type int $user_id Fetch field data for this user ID 119 * @type int $profile_group_id Field group to fetch fields & data for 120 * @type int|bool $hide_empty_groups Should empty field groups be skipped 121 * @type int|bool $fetch_fields Fetch fields for field group 122 * @type int|bool $fetch_field_data Fetch field data for fields in group 123 * @type array $exclude_groups Exclude these field groups 124 * @type array $exclude_fields Exclude these fields 125 * @type int|bool $hide_empty_fields Should empty fields be skipped 126 * @type int|bool $fetch_visibility_level Fetch visibility levels 127 * @type int|bool $update_meta_cache Should metadata cache be updated 122 * @type int $user_id Fetch field data for this user ID. 123 * @type string|array $member_type Limit results to those matching member type(s). 124 * @type int $profile_group_id Field group to fetch fields & data for. 125 * @type int|bool $hide_empty_groups Should empty field groups be skipped. 126 * @type int|bool $fetch_fields Fetch fields for field group. 127 * @type int|bool $fetch_field_data Fetch field data for fields in group. 128 * @type array $exclude_groups Exclude these field groups. 129 * @type array $exclude_fields Exclude these fields. 130 * @type int|bool $hide_empty_fields Should empty fields be skipped. 131 * @type int|bool $fetch_visibility_level Fetch visibility levels. 132 * @type int|bool $update_meta_cache Should metadata cache be updated. 128 133 * } 129 134 */ … … 154 159 'profile_group_id' => false, 155 160 'user_id' => false, 161 'member_type' => 'any', 156 162 'hide_empty_groups' => false, 157 163 'hide_empty_fields' => false, … … 318 324 * Array of arguments. See BP_XProfile_Group::get() for full description. Those arguments whose defaults differ 319 325 * from that method are described here: 320 * @type bool $hide_empty_groups Default: true. 321 * @type bool $hide_empty_fields Defaults to true on the Dashboard, on a user's Edit Profile page, 322 * or during registration. Otherwise false. 323 * @type bool $fetch_visibility_level Defaults to true when an admin is viewing a profile, or when a user is 324 * viewing her own profile, or during registration. Otherwise false. 325 * @type bool $fetch_fields Default: true. 326 * @type bool $fetch_field_data Default: true. 326 * @type string|array $member_type Default: 'any'. 327 * @type bool $hide_empty_groups Default: true. 328 * @type bool $hide_empty_fields Defaults to true on the Dashboard, on a user's Edit Profile page, 329 * or during registration. Otherwise false. 330 * @type bool $fetch_visibility_level Defaults to true when an admin is viewing a profile, or when a user is 331 * viewing her own profile, or during registration. Otherwise false. 332 * @type bool $fetch_fields Default: true. 333 * @type bool $fetch_field_data Default: true. 327 334 * } 328 335 * … … 346 353 $r = bp_parse_args( $args, array( 347 354 'user_id' => bp_displayed_user_id(), 355 'member_type' => 'any', 348 356 'profile_group_id' => false, 349 357 'hide_empty_groups' => true,
Note: See TracChangeset
for help on using the changeset viewer.