[buddypress-trac] [BuddyPress] #4561: Fix this hook please. -- action: groups_before_delete_group

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Sep 26 15:01:53 UTC 2012


#4561: Fix this hook please. -- action: groups_before_delete_group
-----------------------------+---------------------------------------
 Reporter:  michael.ecklund  |      Owner:  Michael Ecklund
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Groups           |    Version:  1.7
 Severity:  normal           |   Keywords:  needs-patch needs-testing
-----------------------------+---------------------------------------
 `bp-groups/bp-groups-functions.php` Line: 212

 The group is deleted before this hook is called.

 If I hook into `groups_before_delete_group`, I cannot fetch the group info
 based upon the `$group_id` because the group has already been deleted.

 Isn't the point of this hook to be called BEFORE a group is deleted?

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4561>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list