• Resolved dponi00

    (@dponi00)


    Hello,

    I hope you’re doing great. I’m trying to create a registration form using the Create User action, but I can’t get it to work. I get a success message but no user is created.

    I created three group fields that are linked to the form and I have mapped them correctly. I’ve never really created a registration form from almost scratch so I’d appreciate any help you can provide.

    Thank you for your help and for creating this powerful plugin ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello @dponi00,

    Sorry for the late answer, I was very busy with the latest update, and had to take some rest after that (not much sleep since few weeks).

    So basically the “Create user” action use the wp_insert_user() WP function (documentation: https://developer.www.ads-software.com/reference/functions/wp_insert_user/).

    The required fields, in order to create a new user, are:
    – Email
    – Login
    – Password

    Before the 0.8.5 update, without those informations, the user couldn’t be created (those are hard requirements for wp_insert_user()). But since the latest update, I added fallbacks, when those informations are not set. The only mandatory field right now is: “E-mail”.

    If the login is not provided, then the e-mail will be used. If the password is not provided, then it will generate a 8 characters password.

    Hope it helps ??

    Have a nice day!

    Regards.

    Thread Starter dponi00

    (@dponi00)

    Of course, no problem. I was actually hoping you wouldn’t reply on the weekend. We all need a break from time to time ??

    I hope you haven’t been affected a lot by the virus and quarantine.

    Just have a couple more questions which I’ll post in a new thread and, then, I hope I’ll be able to manage the rest on my own.

    Thanks and stay safe!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Guidance on creating registration form’ is closed to new replies.