Changeset 11358 for trunk/src/bp-groups/bp-groups-functions.php
- Timestamp:
- 12/29/2016 08:35:52 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-functions.php
r11286 r11358 1426 1426 1427 1427 $member = new BP_Groups_Member( $user_id, $group_id ); 1428 1429 // Save the inviter ID so that we can pass it to the action below. 1430 $inviter_id = $member->inviter_id; 1431 1428 1432 $member->accept_invite(); 1429 1433 … … 1444 1448 * 1445 1449 * @since 1.0.0 1446 * 1447 * @param int $user_id ID of the user who accepted the group invite. 1448 * @param int $group_id ID of the group being accepted to. 1449 */ 1450 do_action( 'groups_accept_invite', $user_id, $group_id ); 1450 * @since 2.8.0 The $inviter_id arg was added. 1451 * 1452 * @param int $user_id ID of the user who accepted the group invite. 1453 * @param int $group_id ID of the group being accepted to. 1454 * @param int $inviter_id ID of the user who invited this user to the group. 1455 */ 1456 do_action( 'groups_accept_invite', $user_id, $group_id, $inviter_id ); 1451 1457 1452 1458 return true;
Note: See TracChangeset
for help on using the changeset viewer.