Buddypress(9.0) Avatar Upload Hook issues
-
Hi all,
I have recently upgraded to Buddypress 9.0 and an existing function hooked in uploading a new avatar no longer appears to be working. Could you let me know please what is the correct hook now? I looked through the supplied Actions & Hooks pdf, but no luck so far in trying those. I also searched for “Avatar hook” in the forums and no results unfortunately.
*Wanted to note that the profile picture/avatar is being uploaded to WordPress correctly
Here is how the function was being registered before:
add_action( 'bp_members_avatar_uploaded', [self::class, 'UpdateAvatarToSalesforce'], 10, 3 );
Here is the function prototype:
public static function UpdateAvatarToSalesforce($item_id, $type, $avatar_data)
Thank you in advance!
- You must be logged in to reply to this topic.