It has a bunch of user data in it we have their first name last name, email address, some billing and shipping information, etc, etc. So I’m going to select that upload that into wpl import, and then we have two options. We can import data from this file into existing items if we were going to try and match this to WordPress users that were already on our site or in this case new items because we’re going to be importing new users. So we’ll click here and then scroll down to users and that’s going to create a new user for every record.
In my data file, every Row in my CSV all right so wp l import has processed the file and it’s detected 5754 rows and each row, as you can see down here, is one of my users. These are the columns along the top of the CSV, and this would be one user record that gets imported and then down here we have our filtering options here. What we can do is we can choose to filter data by some data element in my file. So, in this case, I want to import people who are from California, so I’m going to go ahead and type Inca down there and then also from people that are in New York billing state equal to New York.
We’re going to add that rule now, the way this filter is set up right now is going to show me it’s going to import people that have a billing State of California and New York, but I want it to be, or so we’ll select or over there And that’s going to give me people from California or New York and we’re going to apply filters to XPath and that’s our XPath statement up here.
That’s going to determine what gets imported from our file.
If you know what XPath is that’s great, you can put anything you want in here and write a custom, XPath expression, and if you don’t know what XPath is doesn’t matter, you don’t need to know what XPath is or how to use it, because wp l import is Going to take care of it for you, so you can see here we have 959 users that are going to get imported and they all have a billing state of California or New York, looks good to me and now we’ll continue to step three all right.
So over here on the right, we have our available data to import from our import file. You can see that’s all of our customer data for the first record for the second third Etc. Then, over here on the left, we have our user info first name. Last name, username, etc, etc. A user info a little more detailed information about the user account and then our custom fields. So some plugins are going to add data as a custom field. You can click to see detected fields and that’s going to pull up every single.
Weird piece of custom data that is on your site, depending on what plugins you have there’s going to be more of us here and if you want to import to these, all you have to do is find the right one figure out what data that is needed For that custom field and drag it over in this case, we’re not going to really do that. What we’re going to use is Advanced custom fields and it’s pretty nice. So, what we did is we added some member data, and we want to get in the address and the phone number.
So, let’s start up here at the top. So first I’m going to drag in my first name and my last name and the username and the email address and the password. And what we’re going to do is leave the password blank and let WordPress assign a random password to these users. And then we can just email all the users and tell them to log in and create a new password for their account if we had our password data in our import file and it was hashed the way, WordPress stores those right here.
What we would do is we’d drag it over put it in there and select.
This is a hashed password from another WordPress site, and then their passwords are just going to work automatically in this case we’re importing from somewhere else not from WordPress. So, we don’t have the password data now, if you’re interested in migrating your WordPress users from another WordPress site, it’s a little bit easier of a process check the video description below. We have a link to a video for that.
So, I’m going to uncheck this and again we’re just going to leave that blade and now we’re going to other user info. So this is the user role and these people are going to be have a role of member right, because these are going to be members. I’M imported to my site, members from California and New York, so we’ll give them a user World member.
This can be subscriber customer or something like that if you are importing WooCommerce customers, we have a separate video for that. If you check the video description below you can check out our video on importing WooCommerce customers or migrating them, but in this case, we’re doing members for nickname, I’m going to leave nickname display, name and all this stuff. Blank we’ll drag in registered date. Just because I have it, but the rest of this will just be set automatically by WordPress during the import process, so close this tab over here and now we’ll go down to our address data into the advanced custom Field section.
So you can see here all of this data is spread out into a bunch of different fields. Right we have Street city, state and zip, but now we have one address fee, so I’m going to do is drag all of them in together, so I’ll drag in building Street. Give that a space, then City – and I want to have a comma in between these – like that and State comma and a space and then we’ll do a common space, and we’ll drag in our ZIP code. So, we have Street city state, ZIP, perfect, and then we have our phone number now the phone number it doesn’t have the country code.
They want to get the country code in there. So, I’m just going to put a plus one and a space like that and that’ll get this billing phone formatted nice and pretty for me now again. If you know XPath, you might recognize these as little XPath statements in here. So again you can go in and you can customize this and have it say whatever you need to say. If you don’t know XPath again, don’t worry about it. Wpl import is going to take care of all that. For you, then, finally down here, we have our custom function, editor, where you can write, custom, PHP functions and pass your data through it.
For example, let’s say I wanted to have the billing street address up here and then I want another Google Maps link or something like that. So what I could do is I could write some PHP code down here, pass this information into my custom function and have it return the Google Maps URL after calling the Google Maps API um. You can also just do simple stuff, like uh process, some text and have it be uppercase or lowercase, you can do math, you can do all sorts of crazy stuff. If you check our site, we have a bunch of code Snippets with some pre-written code.
Examples for you to kind of get you started and if you don’t know PHP don’t worry about it. You don’t need to know anything about that, so that is our import all configured now we’re just going to continue to step four now up here we have our unique identifier and what this does is it lets wp l import figure out, okay, which of these users are Unique from each other right like what field in here says these are.
These are two unique records: um, for example, billing State, probably pretty bad email address, probably a pretty good field right, because if two people have the same email address, they’re the same user um, you can also a wp l Import, Auto, detect it, and in this case it’s Picked username, which is probably pretty smart, two people with the same username, probably the same user, so we’ll just leave that there um down here we’re telling wp l import what to do when it’s detected new or changed data when we run the import again. For a second time, so if, for example, it ran this import again with a new import file – and I changed some of this information in here – what do I want to do?
Do I want to create new users from people that I’ve added to this file um?
For example, if this was hosted on Dropbox and this file is changing all the time, do I want to delete users that have been removed from the file um and then you know I can choose here. I can say: Okay um. I only want to update their login, their login name or the URL, and I want to leave everything else the same. So, what we’re going to do is we’re just going to leave it with the default settings.
We’re going to leave this checked um the email notifications for imported users, then that way, these folks are not going to be getting welcome, notices from WordPress as they get imported. Now you need to be a little bit careful with this setting, especially if you want to make sure that people aren’t going to be emailed. There are some email plugins for WordPress, that kind of make the email process a little bit easier and they prevent us from actually blocking these notifications for getting sent out.
So, it might be a good idea to run a test first and just make sure the email notifications are actually going to be blocked before you run an import, for example, with 959 users and then you’re accidentally sending them welcome notices.
You know, as every time you run the import um so something to keep in mind um down. Here we have some scheduling options where we can choose to run this import on the schedule, for example every Monday or once a month, or something like that again. If this was file was hosted on Dropbox, it might be changing all the time. We can keep our WordPress users up to date and then these settings we might want to take a little bit of a closer look at them. In this case, again we’re just running this import once and then we have some advanced settings.
If you want to dig a little deeper into how the import process is going to run um, we’re just going to leave all this with the defaults and then continue and that’s it so we’re just going to double check all this here, make sure everything looks good and then confirm and run the import now this is going to take a few minutes uh. We will let it run and come back when it’s finished. All right import is complete.
That didn’t take too long. So, let’s go over here to our users and check them out looks good. We have 960 users, that’s 950m that were imported and then my one administrator account.
So, let’s open one up and see how it looks so, there’s their username first name, last name nickname which we didn’t actually import but which was set automatically by WordPress. Their email address scrolling down – and here is our member data from ACF the advanced custom Fields. Plugin see their address looks nice and we have our country code in front of their phone number and down here you have capabilities member. So, what we did is we added that user role for them and that’s right there, so that is how you import users from CSV into WordPress using wp l import thanks for watching and we’ll see you soon.
Ultimate Reseller
https://paykstrt.com/12572/38508
7 in 1 Licensing Collection
https://paykstrt.com/42141/38508
3X Growth Formula
https://paykstrt.com/45722/38508
Instant access to your free swipe file of 47 business-boosting tools!
Discover more from Automatically generating your monthly income?
Subscribe to get the latest posts sent to your email.