Skip to:
Content

BuddyPress.org

Changeset 6347


Ignore:
Timestamp:
09/26/2012 03:12:50 PM (12 years ago)
Author:
boonebgorges
Message:

Fire groups_before_delete_group action before group is actually deleted

Fixes #4561

Props michael.ecklund

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-functions.php

    r6342 r6347  
    205205        return false;
    206206
     207    do_action( 'groups_before_delete_group', $group_id );
     208
    207209    // Get the group object
    208210    $group = groups_get_group( array( 'group_id' => $group_id ) );
    209211    if ( !$group->delete() )
    210212        return false;
    211 
    212     do_action( 'groups_before_delete_group', $group_id );
    213213
    214214    // Delete all group activity from activity streams
Note: See TracChangeset for help on using the changeset viewer.