Changeset 13882 for trunk/src/bp-groups/bp-groups-template.php
- Timestamp:
- 06/01/2024 04:59:14 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-template.php
r13876 r13882 4221 4221 * @global BP_Core_Members_Template $members_template The Members template loop class. 4222 4222 * 4223 * @return mixed|void4223 * @return string|null 4224 4224 */ 4225 4225 function bp_get_group_member_name() { … … 4251 4251 * @global BP_Core_Members_Template $members_template The Members template loop class. 4252 4252 * 4253 * @return mixed|void4253 * @return string 4254 4254 */ 4255 4255 function bp_get_group_member_url() { … … 4261 4261 * @since 1.0.0 4262 4262 * 4263 * @param string $ valueURL for the current user.4263 * @param string $group_member_url URL for the current user. 4264 4264 */ 4265 4265 return apply_filters( 'bp_get_group_member_url', bp_members_get_user_url( $members_template->member->user_id ) ); … … 4282 4282 * @global BP_Core_Members_Template $members_template The Members template loop class. 4283 4283 * 4284 * @return mixed|void4284 * @return string 4285 4285 */ 4286 4286 function bp_get_group_member_link() { … … 4292 4292 * @since 1.0.0 4293 4293 * 4294 * @param string $ valueHTML link for the current user.4294 * @param string $group_member_link HTML link for the current user. 4295 4295 */ 4296 4296 return apply_filters( 'bp_get_group_member_link', '<a href="' . esc_url( bp_members_get_user_url( $members_template->member->user_id ) ) . '">' . esc_html( $members_template->member->display_name ) . '</a>' ); … … 4312 4312 * @global BP_Core_Members_Template $members_template The Members template loop class. 4313 4313 * 4314 * @return mixed|void4314 * @return string 4315 4315 */ 4316 4316 function bp_get_group_member_domain() { … … 4322 4322 * @since 1.2.0 4323 4323 * 4324 * @param string $ valueDomain for the current user.4324 * @param string $group_member_domain Domain for the current user. 4325 4325 */ 4326 4326 return apply_filters( 'bp_get_group_member_domain', bp_members_get_user_url( $members_template->member->user_id ) ); … … 4342 4342 * @global BP_Core_Members_Template $members_template The Members template loop class. 4343 4343 * 4344 * @return mixed|void4344 * @return string 4345 4345 */ 4346 4346 function bp_get_group_member_is_friend() { … … 4540 4540 * @since 1.0.0 4541 4541 * 4542 * @return mixed|void4542 * @return string 4543 4543 */ 4544 4544 function bp_get_group_pag_id() { … … 4549 4549 * @since 1.0.0 4550 4550 * 4551 * @param string $ valueValue to use for the pag id.4551 * @param string $pag_id Value to use for the pag id. 4552 4552 */ 4553 4553 return apply_filters( 'bp_get_group_pag_id', 'pag' ); … … 4568 4568 * Returns the group members list pagination links. 4569 4569 * 4570 * 4570 * @since 1.0.0 4571 4571 * 4572 4572 * @global BP_Core_Members_Template $members_template The Members template loop class. 4573 4573 * 4574 * @return mixed|void4574 * @return string|null 4575 4575 */ 4576 4576 function bp_get_group_member_pagination() { … … 4602 4602 * @global BP_Core_Members_Template $members_template The Members template loop class. 4603 4603 * 4604 * @return mixed|void4604 * @return string 4605 4605 */ 4606 4606 function bp_get_group_member_pagination_count() { … … 4624 4624 * @since 1.0.0 4625 4625 * 4626 * @param string $ value"Viewing x-y of z members" text.4626 * @param string $message "Viewing x-y of z members" text. 4627 4627 * @param string $from_num Total amount for the low value in the range. 4628 4628 * @param string $to_num Total amount for the high value in the range. … … 6155 6155 * @since 1.1.0 6156 6156 * 6157 * @param string $args 6158 * @return bool|mixed|void 6157 * @param string|array $args { 6158 * @type int $group_id ID of the group. Defaults to current group. 6159 * @type int $user_id ID of the user. Defaults to logged-in user. 6160 * @type int $per_page Number of records to return per page. Default: 10. 6161 * @type int $page Page of results to return. Default: 1. 6162 * } 6163 * @return bool 6159 6164 */ 6160 6165 function bp_group_has_invites( $args = '' ) { … … 6196 6201 * @since 1.1.0 6197 6202 * 6198 * @param bool $ value Whether there are requests to display.6203 * @param bool $invites Whether there are invites to display. 6199 6204 * @param BP_Groups_Invite_Template $invites_template Object holding the invites query results. 6200 6205 */ … … 6234 6239 * @since 1.1.0 6235 6240 * 6236 * @return mixed|void6241 * @return string 6237 6242 */ 6238 6243 function bp_get_group_invite_item_id() { … … 6244 6249 * @since 1.1.0 6245 6250 * 6246 * @param string $ valueGroup invite item ID.6251 * @param string $group_invite_item_id Group invite item ID. 6247 6252 */ 6248 6253 return apply_filters( 'bp_get_group_invite_item_id', 'uid-' . $invites_template->invite->user->id ); … … 6260 6265 * @since 1.1.0 6261 6266 * 6262 * @return mixed|void6267 * @return string|null 6263 6268 */ 6264 6269 function bp_get_group_invite_user_avatar() { … … 6270 6275 * @since 1.1.0 6271 6276 * 6272 * @param string $ valueGroup invite user avatar.6277 * @param string $invite_user_avatar Group invite user avatar. 6273 6278 */ 6274 6279 return apply_filters( 'bp_get_group_invite_user_avatar', $invites_template->invite->user->avatar_thumb ); … … 6286 6291 * @since 1.1.0 6287 6292 * 6288 * @return mixed|void6293 * @return string 6289 6294 */ 6290 6295 function bp_get_group_invite_user_link() { … … 6296 6301 * @since 1.1.0 6297 6302 * 6298 * @param string $ valueGroup invite user link.6299 */ 6300 return apply_filters( 'bp_get_group_invite_user_link', bp_core_get_userlink( $invites_template->invite->user->id ) );6303 * @param string $user_link Group invite user link. 6304 */ 6305 return apply_filters( 'bp_get_group_invite_user_link', (string) bp_core_get_userlink( $invites_template->invite->user->id ) ); 6301 6306 } 6302 6307 … … 6311 6316 * @since 1.1.0 6312 6317 * 6313 * @return mixed|void6318 * @return string|null 6314 6319 */ 6315 6320 function bp_get_group_invite_user_last_active() { … … 6321 6326 * @since 1.1.0 6322 6327 * 6323 * @param string $ value Group invite user's last active time.6328 * @param string $user_last_active Group invite user's last active time. 6324 6329 */ 6325 6330 return apply_filters( 'bp_get_group_invite_user_last_active', $invites_template->invite->user->last_active );
Note: See TracChangeset
for help on using the changeset viewer.