This super simple mu-plugin extends WP Migrate DB Pro and WP Migrate DB Anonymization plugin.
- prevents anonymizing users with Administrator, Editor, Shop Manager roles or
manage_options
capability during a migration. Never accidentally lose access to your staging or development site again! - Uses example.org domains for user emails instead of random domains. This way no real existing emails are accidentally generated.
-
Install the mu-plugin:
composer require codelight-eu/wp-migrate-db-pro-extended
-
Install the mu-plugin loader:
composer require lkwdwrd/wp-muplugin-loader
IMPORTANT! If the site crashes after installing the mu-plugin loader, run composer dump-autoload
.