• Hi

    Is there a way I can delete a user’s (i.e. by UID) data in Woocommerce using a function call?

    I have checked the function reference but there is no one function to do this, there are multiple delete functions but I do not know which one I have to call and in what order to delete all data.

    By law/tax/etc I do not have to keep data after 3..5 years so I can delete data, which I want to do.

    I want to do this for many plugins and many users, but I do not want to go into the dashboard and for each plugin and each user and click three checkboxes/buttons to delete.

    I want to write a function that calls functions of plugins to delete user data in one go and create a button in the user panel to do the lot, including Woocommerce.

    I just want to bypass to do this for each plugin through the dashboard.

Viewing 1 replies (of 1 total)
  • jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @jobst This will most likely need to be something custom developed for you, as the current functions that are in place are for GDRP purposes and will remove the personal data, but orders and such do not get deleted, they just get their data replaced so that the store’s reports do not show incorrectly.

    We will continue to leave this open for now in case anyone may have some tips for you.

Viewing 1 replies (of 1 total)
  • The topic ‘Deleting all data of a user using a function call’ is closed to new replies.