groups_avatar_uploaded

This action is documented in bp-groups/bp-groups-screens.php.

Description

do_action( 'groups_avatar_uploaded', (int) $bp_get_current_group_id, (string) $crop, (array) $args ); 

Parameters (3)

0. $bp_get_current_group_id (int) => bp_get_current_group_id()
The bp get current group id.
1. $crop (string) => 'crop'
Avatar type. crop or full..
2. $args (array)
Array of parameters passed to the avatar handler.

Usage

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

Defined (3)

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

/bp-groups/bp-groups-screens.php  
  1. do_action( 'groups_avatar_uploaded', bp_get_current_group_id(), 'crop', $args ); 
/bp-groups/bp-groups-actions.php  
  1. do_action( 'groups_avatar_uploaded', bp_get_current_group_id(), 'crop', $args ); 
/bp-core/bp-core-avatars.php  
  1. do_action( 'groups_avatar_uploaded', (int) $avatar_data['item_id'], $avatar_data['type'], $r );