Skip to:
Content
Pages
Categories
Search
Top
Bottom

Send confirmation mail when a user deletes there account?

  • @mvaneijgen

    Participant

    Is it possible to send a confirmation mail when a user deletes there account on the front-end of the site?

Viewing 4 replies - 1 through 4 (of 4 total)
  • @danbp

    Participant

    When an account is deleted, all datas are retrieved from the DB. So it’s just impossible to send a mail to a unknown user !

    @shanebp

    Moderator

    Send a confirmation to the user being deleted?

    Not sure if this will work from Settings > Delete Account:
    https://codex.wordpress.org/Plugin_API/Action_Reference/delete_user#Example:_Email_Users_Being_Deleted

    @mvaneijgen

    Participant

    I thought this was clear, but maybe not.

    I want to send an confirmation email upon ‘requesting’ deleting there account. This email needs to be confirmed before we delete the account.

    @shanebp

    Moderator

    It’s possible, but not easy.

    You’ll have to start by changing the form action on this template:
    bp-templates\bp-legacy\buddypress\members\single\settings\delete-account.php

    And then write a function to handle your new action.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Send confirmation mail when a user deletes there account?’ is closed to new replies.
Skip to toolbar