,

Add ‘Delete Account’ tab in WooCommerce My Account page

Do you want to add the “Delete Account” tab on the WooCommerce My Account page to allow customers to delete their own accounts? It might be mandatory in your location:

Here’s an extract on GDPR’s right to be forgotten:

The right to control one’s data is meaningless if people cannot take action when they no longer consent to processing, when there are significant errors within the data, or if they believe information is being stored unnecessarily. In these cases, an individual can request that the data be erased.

Please note that the following is not a legal advice. In all circumstances, I strongly recommend you consult directly with legal counsel familiar with the GDPR regulations.

WP Frontend Delete Account Plugin

To add a “Delete Account” tab in the WooCommerce My Account page, you can just install and activate the WP Frontend Delete Account plugin.

The plugin automatically adds the ‘Delete Account’ tab on the WooCommerce account page so that your customers can delete their own accounts without having to request you. if you’d like to customize a few things, you can navigate to Settings > WP Frontend Delete Account.

Here’s the screenshot from the WooCommerce account page:

I hope you found this helpful!

author avatar
Sanjeev Aryal
Sanjeev Aryal is the creative mind behind Mini Plugins, a brand dedicated to developing lightweight, efficient WordPress plugins. He also writes occasionally and contributes to WordPress community.

5 responses to “Add ‘Delete Account’ tab in WooCommerce My Account page”

  1. Debra Avatar
    Debra

    What happens when a user deletes his account and there are open orders?

    1. Sanjeev Aryal Avatar

      The orders are not removed. They’re probably anonomized or attributed to other user. Just like what happens when you delete user from “Users” page.

  2. User Avatar

    You need a setting for excluding administrators. Just like the old Delete Me plugin.

  3. Pete Avatar
    Pete

    Hey, I tried today but it seems the plugin is not working. It doesn’t delete anything!

    1. Sanjeev Aryal Avatar

      Hi Pete, what happens when you click the ‘Delete Account’ button? It reloads or does nothing? Please check for any JS errors in the console.

      Usually JS issues can cause this & because of minify/deferring of script.

Leave a Reply

Your email address will not be published. Required fields are marked *