Timeline for WP: Search and replace in DB programmatically
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 28, 2021 at 20:41 | comment | added | bosco | Neato! I saw a similar feature in the WPMerge.io plugin recently, where when populating a staging site from a production site you are given the option to anonymize PII. I never tried it, but it is a compelling feature. | |
| Jun 27, 2021 at 17:16 | comment | added | Max Krizh | Thank you for all the replies! I am already examining the code of BSR plugin. The S&R functionality is designed to create the anonymizer plugin, that will anonymize all the customers private information (such as email, name, last name, address, etc) in order to comply with GDPR. And yes, there is a backup, but of course it'd be better if the backup restore function won't be used | |
| Jun 27, 2021 at 17:11 | comment | added | bosco | ^ this! If at all possible, I would probably try to implement the feature using WordPress's PHP or REST APIs... if you could tell us more about the replacements you wish to make, we might be able to provide a more useful solution. | |
| Jun 27, 2021 at 17:08 | comment | added | Mark Kaplun | this is very much a "your mileage may vary" thing. While things like in bosco's answer might work 99.9% of the time, you don't want to be the 0.1%. I would not do such a S&R in an automated way on any mission critical site, just the chance of using the wrong terms is a good enough reason to make sure you have a good backup before you start and to inspect the results and test the functionality of the site after you do it | |
| Jun 27, 2021 at 16:43 | answer | added | bosco | timeline score: 1 | |
| Jun 27, 2021 at 15:55 | history | asked | Max Krizh | CC BY-SA 4.0 |