Deleting all data of a user using a function call
-
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.
- The topic ‘Deleting all data of a user using a function call’ is closed to new replies.