groups_details_updated

Fired after a group's details are updated.

Description

do_action( 'groups_details_updated', (int) $group_id, (BP_Groups_Group) $old_group, (bool) $notify_members ); 

Parameters (3)

0. $group_id (int)
ID of the group.
1. $old_group (BP_Groups_Group)
Group object, before being modified.
2. $notify_members (bool)
Whether to send an email notification to members about the change.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'groups_details_updated', $group_id, $old_group, $notify_members ); 
The following example is for adding a hook callback.
  1. // define the groups_details_updated callback 
  2. function action_groups_details_updated( $group_id, $old_group, $notify_members ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'groups_details_updated', 'action_groups_details_updated', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'groups_details_updated', 'action_groups_details_updated', 10, 3 ); 

Defined (1)

The action is defined in the following location(s).

/bp-groups/bp-groups-functions.php  
  1. do_action( 'groups_details_updated', $group->id, $old_group, $notify_members );