When importing a database into a Local WP environment, could all users be sanitized from the database?

I don’t think it’s very sensible to keep user data in a local environment. User data can be removed afterwards by using wp-cli commands, but could this step be automated when importing the database into the local environment?

I would suggest the following:

  • When doing pulling database, there could be a checkbox checkbox to sanitize user data (by default I recommended it to be true)
  • All users should be deleted and replaced with a single local user.
  • All articles could be assigned to this local user.
  • All comments could be assigned to this local user or deleted.
  • All email addresses should be cleaned or replaced with, for example, example@example.com.

Hi @petri

This is an interesting request! I could definitely see where this would be useful. Thank you for sharing! :green_heart: