[buddypress-trac] [BuddyPress Trac] #7647: Group membership events need "after" actions

buddypress-trac noreply at wordpress.org
Fri Dec 22 02:41:27 UTC 2017


#7647: Group membership events need "after" actions
----------------------------------------+-----------------------------
 Reporter:  boonebgorges                |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  Groups                      |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |
----------------------------------------+-----------------------------

Comment (by boonebgorges):

 A generic `transition_` hook was actually my original thought here, but
 since we don't do this elsewhere in BP, I decided not to suggest it :) But
 something like that could be cool, and for more than just group membership
 status.

 > I'm wondering if it would make sense to add "before" action points for
 'groups_join_group' and 'groups_leave_group', too.

 Yes.

 Another thought I had while writing the ticket: It would be nice for at
 least one hook in `BP_Groups_Member::save()` to receive both the old and
 the new data. This would be sorta like a `transition` hook.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7647#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list