Home › Forums › Legacy Support › Support queries › Setup issues › User Registration API Extra Details
Tagged: api
- This topic has 5 replies, 3 voices, and was last updated 4 years, 8 months ago by Anshuman Sahu.
Viewing 6 posts - 1 through 6 (of 6 total)
-
AuthorPosts
-
July 28, 2019 at 4:39 pm #220159suyashdixitParticipantHello, 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?July 29, 2019 at 8:31 am #220209maximusMember@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/oldn53July 30, 2019 at 7:02 pm #220468suyashdixitParticipantThank 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.July 31, 2019 at 1:15 pm #220606maximusMember@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.August 1, 2019 at 5:36 pm #220776suyashdixitParticipantHello, Thank you for your earlier reply. Do we have any solution on my first point?August 2, 2019 at 10:28 am #220834Anshuman SahuKeymasterWell 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 .
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)
- The topic ‘User Registration API Extra Details’ is closed to new replies.