Skip to:
Content

BuddyPress.org

Ticket #6020: 6020.2.diff

File 6020.2.diff, 599 bytes (added by tharsheblows, 10 years ago)

adds 'groups_leave_group' action

  • src/bp-groups/bp-groups-actions.php

     
    387387                        bp_core_add_message( __( 'There was an error leaving the group.', 'buddypress' ), 'error' );
    388388                } else {
    389389                        bp_core_add_message( __( 'You successfully left the group.', 'buddypress' ) );
     390                        do_action( 'groups_leave_group', bp_get_current_group_id(), bp_loggedin_user_id() );
    390391                }
    391392
    392393                $redirect = bp_get_group_permalink( groups_get_current_group() );