IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
1425 | 1425 | } |
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 | |
1430 | 1434 | if ( !$member->save() ) { |
… |
… |
|
1443 | 1447 | * Fires after a user has accepted a group invite. |
1444 | 1448 | * |
1445 | 1449 | * @since 1.0.0 |
| 1450 | * @since 2.8.0 The $inviter_id arg was added. |
1446 | 1451 | * |
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. |
| 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. |
1449 | 1455 | */ |
1450 | | do_action( 'groups_accept_invite', $user_id, $group_id ); |
| 1456 | do_action( 'groups_accept_invite', $user_id, $group_id, $inviter_id ); |
1451 | 1457 | |
1452 | 1458 | return true; |
1453 | 1459 | } |