This is a PHP script to anonymize datas for Wordpress and Woocommerce. It uses Faker PHP to erase sensitives datas with datas that looks like real datas, useful to respect GDPR on your test/staging environment.
Based on this two scripts :
-
https://www.businessbloomer.com/woocommerce-anonymize-users-orders/
-
https://gist.github.com/trainingspark/d3fdf638dcdcdbd65c1618e6bc6fe946
Pull the repo at the root of your Wordpress install, then go in the folder and :
composer install
then
php anonymize-datas.php
- add IP ano
- add bank datas
- add gift info (_gift_email)