11/9/2017 - 5:37 PM

WordPress doesn't allow multiple users to share the same e-mail address, but there are certain plugins that change that behavior. This is an example workaround using the Allow Multiple Accounts plugin.

  1. Install and activate this plugin:

  2. Use a custom PHP function in the import to generate a fake e-mail for the imported user(s): [fake_email()]. Screenshot:

  3. Store the real e-mail in a Custom Field named '_email_temp'. Screenshot:

  4. Use our API to change the users e-mail to the real e-mail after the user is saved.

Here’s all of the code you’ll need to add inside the Function Editor via All Import -> Settings:

That’s it. Keep in mind that this code runs for all imports, so you might consider wrapping it in an if conditional based on the import ID ( which you can get from $_GET['id'] for manual runs or $_GET['import_id'] for cron job imports ).