• Resolved cuoredibue

    (@cuoredibue)


    Hello, I am using Ultimate Member free version, last version. I have a little issue because I am not expert in PHP.

    I need the website sends an automatic email whenever a user upload a new file on his profile page.
    There was a hook called um_after_user_upload, it is still documented but it looks like this hook is deprecated in the new version of UM.

    Is there a workaround or any other hooks that I can use to accomplish this task?
    Thank you,
    Sacha.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support mansurahamed

    (@mansurahamed)

    Hi @cuoredibue,

    You can use this

    
    add_action( 'um_after_upload_db_meta_{$key}', 'my_after_upload_db_meta', 10, 1 );
    function my_after_upload_db_meta( $user_id ) {
     // your code here to send the email
    
    }

    Replace the {$key} with your actual file upload field’s metakey.

    Thanks.

    • This reply was modified 3 years, 8 months ago by mansurahamed.
    Thread Starter cuoredibue

    (@cuoredibue)

    Thanks for your answer, Mansurahamed. I think this will help.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hey @cuoredibue!

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hook for “update file”’ is closed to new replies.