BuddyDev

Search

[Resolved] Buddypress Avatar Upload Hook

  • Participant
    Level: Initiated
    Posts: 2
    Ali on #39636

    Hi all,

    I am attempting to hook into the BuddyPress Avatar upload process. I am waiting to take the avatar data after it has been uploaded and store it on a different server.

    add_action( 'bp_after_profile_avatar_upload_content', [self::class, 'UpdateAvatarToSalesforce'], 10, 3 );

    It does not fire off my function UpdateAvatarToSalesforce and I am wondering if I am using the wrong hook. I am using BuddyPress 9.0

    Any and all feedback would be appreciated!

  • Participant
    Level: Initiated
    Posts: 2
    Ali on #39637

    My apologies, meant to put this in Support but it looks like I can’t edit it. It says “Cannot Create New Posts”

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2908
    Ravi on #39639

    Hello Ali,

    Thank you for posting. Look for the function name “bp_core_avatar_handle_upload” this function handles avatar uploading and let me know if it helps you or not.

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 2
    Ali on #39656

    Hi Ravi,

    Appreciate the help! That function is the function that handles it, but is not registered as an official hook/action. It did get me started in the right direction though, thanks!

    Ali

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2908
    Ravi on #39664

    Hello Ali,

    Thank you for the acknowledgment. Hope you will make it and for any further assistance please let me know.

    Regards
    Ravi

The topic ‘ [Resolved] Buddypress Avatar Upload Hook’ is closed to new replies.

This topic is: resolved