- February 5, 2019 at 10:59 pm #3582
Is there a way to stop the email notification that is sent to a user when they register?February 6, 2019 at 12:42 am #3587
Alex RollinModeratorPost count: 12788
I don’t think so, but I will flag your question for the developers and they will let us know if there is a workaround for that.February 6, 2019 at 1:14 am #3588
Thanks. I just used the import function for 150 users and I think it sent out an email to all of them even though the site isn’t ready to go live yet. A bit embarrassing for me.February 6, 2019 at 6:43 am #3589
We are sending the username and password to each user after users are imported so that they can log in using the details. If you want to disable it then you need to make changes in core files. There is no settings or filter to disable it. You can comment the line no. 539 in file class-import-export.php in folder plugins->userswp->includes. You can revert the changes once you are done with the import. Let me know if you have any queries.
PatrikFebruary 6, 2019 at 2:59 pm #3592
Thank you. I appreciate your help. I have commented out this line.
I had one other issue with the Import function. I created an import file (based on an export file from your plugin) with all of the information for each user, including custom fields. When I imported it, all the users were imported (with username, email, first name, last name, and display name) but none of the custom fields were populated. Should this work or does your import only work with native WordPress fields?
I have attached both files. The one I used to import the new users. Thanks.February 6, 2019 at 3:01 pm #3593
It wouldn’t let me upload csv files. Here they are as txt files.
Thanks again for your help.
Attachments:You must be logged in to view attached files.February 6, 2019 at 3:30 pm #3596
Did you create the custom fields in advance? If not, you must do so before importing. The import file will not create the custom fields otherwise.
Let us know,
ThanksFebruary 6, 2019 at 3:41 pm #3597
Yes, I created the custom fields before I attempted the import.
If your import should support the custom fields I created, then maybe something was wrong with my file. However, it did import their usernames, first and last names, emails, and display name (full name). So I would think the file was correct. If it was not correct, I would expect the import to fail.
Now that I commented out the email notification during importing, I can try to import them again. Should I delete the current users or will the import script just update the current users?February 6, 2019 at 3:47 pm #3598
I would delete the users imported incorrectly 1st except 1. Add custom fields to that user from WP back end and export the file. That way you’ll have certainty that the file has correct headings.
At that point add the data back and try to import again.
Let us know how it goes.
ThanksFebruary 6, 2019 at 3:54 pm #3599
I will do exactly that and report back. Thanks for your prompt replies.February 6, 2019 at 5:18 pm #3600
I did exactly as you suggested and it will not import the custom fields. In fact, I’m getting some strange results as I try to troubleshoot this.
If I DO NOT add a user_id to the import file, and let the auto increment add the ID, the username and email will be imported, but the first name, last name, and display name (along with all custom fields) will not be imported.
If I DO add a user_id to the import file, the username and email, first name, last name, and display name WILL be imported, but not the custom fields.
When I added text to the BIO field, that was imported along with email, first name, last name, and display name, but none of the custom fields.
Attached is the exported file I used to build the import file and also the text user import file (with just 1 user for simplicity).
Attachments:You must be logged in to view attached files.February 6, 2019 at 5:38 pm #3603
I’ll let Patrik follow up on this. If you provide a link and admin credentials for your website he’ll probably be able to debug this faster.
Thanks for your patienceFebruary 6, 2019 at 6:33 pm #3604This reply has been marked as private.February 7, 2019 at 7:10 am #3605
Thanks for noticing the issue. We have applied the fix for custom fields and will be available in the next release of the plugin. If you want to try on your site then please provide us the FTP details in private reply and we will do the changes on your site. Please note there will be no new custom fields added while import and only the existing custom fields in the current site will be imported.
PatrikFebruary 7, 2019 at 10:49 am #3607This reply has been marked as private.
You must be logged in to reply to this topic.