xprofile_screen_change_avatar

  • do_action( 'xprofile_screen_change_avatar' )

    Source Reference:

    • Component: BuddyPress:: bp-xprofile
      File: /bp-xprofile/bp-xprofile-screens.php :: Trac Source Line: 172
      		if ( !bp_core_avatar_handle_crop( array( 'item_id' => $bp->displayed_user->id, 'original_file' => $_POST['image_src'], 'crop_x' => $_POST['x'], 'crop_y' => $_POST['y'], 'crop_w' => $_POST['w'], 'crop_h' => $_POST['h'] ) ) )
      			bp_core_add_message( __( 'There was a problem cropping your avatar, please try uploading it again', 'buddypress' ), 'error' );
      		else {
      			bp_core_add_message( __( 'Your new avatar was uploaded successfully!', 'buddypress' ) );
      

Comments are closed.