do_action( 'xprofile_avatar_uploaded', string $item_id, string $type, array $avatar_data )

Fires if the new avatar was successfully captured.


Description Description


Parameters Parameters

$item_id

Inform about the user id the avatar was set for.

$type

Inform about the way the avatar was set ('camera').

$avatar_data

Array of parameters passed to the avatar handler.


Top ↑

Source Source

File: buddypress/bp-core/bp-core-avatars.php


Top ↑

Changelog Changelog

Changelog
Version Description
2.8.0 Added the $avatar_data parameter.
2.3.4 Add two new parameters to inform about the user id and about the way the avatar was set (eg: 'crop' or 'camera') Move the action at the right place, once the avatar is set
1.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.