- This topic has 7 replies, 2 voices, and was last updated 10 years, 3 months ago by
Pie Register.
- AuthorPosts
- May 25, 2016 at 1:29 pm #10004537
Melih OztalayParticipantHello,
One someone registers, how do we allow them to select what type of registration they are. There are only two options for our website…subscriber and contributor.
Based on the field being used for this purpose in Pie Register, does it automatically setup the WordPress user account accordingly?
Thanks for your help.
May 25, 2016 at 6:50 pm #10004538
Pie RegisterParticipantHello,
With PR free version, you can only set a role users will be registered in at Form Editor, so all of the new registrant will be assigned that role automatically.
Thanks
May 25, 2016 at 7:00 pm #10004539
Melih OztalayParticipantHi Mohsin,
Are you suggesting here is a Prof version of this plugin? If so, how do we get it? We did not see anything within the plugin’s Help very easily.
May 25, 2016 at 7:27 pm #10004540
Pie RegisterParticipantHi Melih,
There is a pro version but haven’t out yet still in testing phase.. yes the documentation is still something we need to work on.. however, the best way for the support is searching forums and post your queries here at this moment.
Best
May 25, 2016 at 7:59 pm #10004541
Melih OztalayParticipantHi Mohsin,
It sounds like we cannot differentiate when people register if they are one type of person or another.
Is there a way to setup two registration pages with different forms?
What about the invitation codes? Anyway that can help separate registrations?
Thanks for collaborating.
May 26, 2016 at 3:14 pm #10004542
Pie RegisterParticipantThere is no way to have multiple forms in free version however, you can extend the functionality to assign different roles based on user selected option using PR registration hook like this:
add_action('pie_register_after_register_validate','assign_different_userRoles_on_pr_registration',10,1); function assign_different_userRoles_on_pr_registration($userData){ //You have user object and POST to retreive the data here. //if(isset($_POST['FIELD_TYPE_XX']) == 'SOMEVALUE'){ //Assign a different role here //} }Hope it will be a starting point..
good luck
May 26, 2016 at 4:18 pm #10004544
Melih OztalayParticipantHi Mohsin,
Could you confirm where this code needs to be placed so we can test it out? I’m not sure you clarified the file location and others who might read this thread would want to do know too.
Thanks.
May 26, 2016 at 7:33 pm #10004545
Pie RegisterParticipantWell, the code i sent you is not a functional one, its just give you an approach to implement what you are looking for, the best place to add this code is either in a new plugin or your theme’s function.php
Thanks
- AuthorPosts
- The forum ‘Pie-Register 2.0 Support’ is closed to new topics and replies.
