bp_groups_sent_updated_email

Fires after the notification is sent that a group has been updated.

Description

do_action( 'bp_groups_sent_updated_email', (array) $user_ids, (string) $var, (string) $var, (int) $group_id ); 

See https://buddypress.trac.wordpress.org/ticket/3644 for blank message parameter.

Parameters (4)

0. $user_ids (array)
Array of user IDs to notify about the update.
1. $var (string) => ''
Deprecated in 2.5; now an empty string.
2. $var (string) => ''
Empty string preventing PHP error.
3. $group_id (int)
ID of the group that was updated.

Usage

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

Defined (1)

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

/bp-groups/bp-groups-notifications.php  
  1. do_action( 'bp_groups_sent_updated_email', $user_ids, '', '', $group_id );