Prevent Blank / Invalid Email from being Imported
-
I have an issue I found that I believe is a problem with Microsoft Office 365 and how it converts a spreadsheet to CSV. The Excel template that I created for use by multisite users to import users. It has custom fields with cells formatted so that dates entered are stored in the proper format. I used the format painter to format cells for 100 rows. Even though there is no input in many of the rows, the CSV file is created with blanks for these rows. There is no user login or user email in those rows.
When the CSV file is imported using the Import users plugin , it creates entries for users with the user name usr_xxxx where xxx is the ID generated by WordPress. The users it creates have no email address or any other information. I need to manually delete them from WordPress.
Would it be possible to check the user email field on import and stop it from being imported into WordPress if there is no email address in the field? Possibly as simple as looking for the presence of “@” in the string.
- The topic ‘Prevent Blank / Invalid Email from being Imported’ is closed to new replies.