How To Differentiate Registration Type - Pie Register
2018-12-11 22:33:16

How To Differentiate Registration Type

Home Forums Pie-Register 2.0 Support How To Differentiate Registration Type

This topic contains 7 replies, has 2 voices, and was last updated by  Pie Register 2 years, 6 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #4537

    Melih Oztalay
    Participant

    Hello,

    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.

    #4538

    Pie Register
    Keymaster

    Hello,

    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

    #4539

    Melih Oztalay
    Participant

    Hi 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.

    #4540

    Pie Register
    Keymaster

    Hi 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

    #4541

    Melih Oztalay
    Participant

    Hi 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.

    #4542

    Pie Register
    Keymaster

    There 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

    • This reply was modified 2 years, 6 months ago by  Pie Register.
    #4544

    Melih Oztalay
    Participant

    Hi 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.

    #4545

    Pie Register
    Keymaster

    Well, 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

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.