[buddypress-trac] [BuddyPress Trac] #7410: Pass the inviter ID to the 'groups_accept_invite' action

buddypress-trac noreply at wordpress.org
Thu Dec 29 20:20:02 UTC 2016

#7410: Pass the inviter ID to the 'groups_accept_invite' action
 Reporter:  jdgrimes     |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Groups       |    Version:
 Severity:  normal       |   Keywords:
 The inviter ID is saved when an invitation to a group is sent, but it is
 discarded in `groups_accept_invite()` when `$member->accept_invite()` is
 called, before the `'groups_accept_invite'` action is fired. So there is
 no way to get the inviter ID from a function hooked to this action.
 Unless, of course, `groups_accept_invite()` is updated to save the inviter
 ID in a variable, that it can later pass as an arg to the
 `'groups_accept_invite'` action.

 Patch forthcoming.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7410>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list