User Registration API Extra Details

Home Forums Legacy Support Support queries Setup issues User Registration API Extra Details

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #220159
    suyashdixit
    Participant
    Hello, We have this user registration API with an example like this: { client_id:"RDRc53PSL8ncHowchpkBi3O", state:"FE7dN0cp", username:"test", email:"[email protected]", password:"1234" } But I want to signup a new user with extra details as well like user role as an instructor or student, first name, last name, etc. How can I do that?
    #220209
    maximus
    Member
    @suyashdixit You can add new columns in your registration page in wp-admin->LMS->Registration forms->Existing Registration forms->Settings and add the extra fields. refer: http://prntscr.com/oldmax Also you can add new fields, You just need to go in wp-admin->Users->Profile Fields->Create a field and this field will show in LMS->Registration form. refer: http://prntscr.com/oldnif  and http://prntscr.com/oldn53
    #220468
    suyashdixit
    Participant
    Thank you for the prompt reply. I have 2 follow-up questions.   Question 1 In this link: https://vibethemes.github.io/wplms-docs/developer-guide.html it is given in the registration API that Add Json data on this url=http://localhost/wordpressnew/wp-json/wplms/v1/user/register { client_id:"RDRc53PSL8ncHowchpkBi3O", state:"FE7dN0cp", username:"test", email:"[email protected]", password:"1234" } But how to add the form that I created? For example in this screenshot https://prnt.sc/om4xjp I have created a form "Instructor" where if a user signup then will be assigned an instructor's profile type. I want these extra fields to be filled during sign up API only. I am making a registration form like this: https://prnt.sc/om520a In the screenshot above, "I am a" field is where user should be able to select a profile type of instructor or student or other   Question 2. As shown in your screenshot, https://prnt.sc/oldmax "Assign Member Type" is not showing in my registration form. https://prnt.sc/om4xjp Why? Thank you in advance.
    #220606
    maximus
    Member
    @suyashdixit =>1. After further discussion, we will give the complete solution for this. =>2. Please goto wp-admin->LMS->Settings->member types:http://prntscr.com/omhsdv Create a member there, then you will see the member type in the registration form.
    #220776
    suyashdixit
    Participant
    Hello, Thank you for your earlier reply. Do we have any solution on my first point?
    #220834
    Anshuman Sahu
    Keymaster
    Well unfortunately we do not have support for extra data in api currently . We have simple registration api as of now .We do not have all the options which we provide with custom registration form as of now .    
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘User Registration API Extra Details’ is closed to new replies.