#7581 closed enhancement (fixed)
duplicated paramater
| Reported by: | idofri | Owned by: | djpaul |
|---|---|---|---|
| Priority: | low | Milestone: | 3.0 |
| Component: | Groups | Version: | 2.9.0 |
| Severity: | trivial | Keywords: | |
| Cc: |
Description
The requesting user id is being passed twice to the 'groups_membership_requested' action-hook in bp-groups-functions.php @ line 1824:
<?php do_action( 'groups_membership_requested', $requesting_user_id, $admins, $group_id, $requesting_user->id );
FYI.
Change History (3)
#3
in reply to: ↑ 1
@
9 years ago
Replying to DJPaul:
Hi @idofri
Thanks for reaching out.
I took a look and despite the inline documentation, that last parameter (
$requesting_user->id) is aBP_Groups_Memberobject, whoseidproperty is the unique ID of the group membership in the database (its primary key). I'll go update the docs now.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)

Hi @idofri
Thanks for reaching out.
I took a look and despite the inline documentation, that last parameter (
$requesting_user->id) is aBP_Groups_Memberobject, whoseidproperty is the unique ID of the group membership in the database (its primary key). I'll go update the docs now.