Importing users into C5

Permalink
I need to import a lot of users from a wordpress installation into C5. As there's no import function I can find in the dash and the only import tool I can find is for pre-5.7 it seems I need to make a small block to do it.

RegistrationService::create( array $data ) seems to be the method to use (?) though there's no explanation of what $data should contain. Where do I need to look for this or does anyone already know what form the array should take?

Thanks

surefyre
 
radeff replied on at Permalink Reply
radeff
Hello

I've just created a block for that task, you may try to adapt it for your needs... no guarantee at all so please make your backup before!

see it on github

https://github.com/zpartakov/c58import_users...
surefyre replied on at Permalink Reply
surefyre
Thanks very much, will take a look at that right now!
surefyre replied on at Permalink Reply
surefyre
Ahh UserInfo::add seems to be deprecated now :(