• Resolved Jing

    (@gujingc)


    Hi,

    This is the solution we look for:

    We have Dokan Multivendor Marketplace and WP Job Manager installed on our site. Both run on WooCommerce. Default roles for Dokan are seller and customer. For WP Job Manager, the default roles are applicant and employer. We would like to create a registration process, that a new user can choose any of the roles. And when they log in they will be redirected to the pages based on the role they choose. Do you support this? If so, is it only available in your pro version?

    Jing

Viewing 1 replies (of 1 total)
  • Plugin Contributor genetech

    (@genetech)

    Hi,

    There is no such built-in option to do that however, if you are convenient with PHP/Wordpress coding, you can make use of PR hooks to do that. Simply, assign the role based on the user posted value in user roles dropdown by using “pie_register_after_user_created” hook.

    e.g.,
    add_action(‘pie_register_after_user_created’,’my_custom_user_role_cb’,10,1);
    function my_custom_user_role_cb($user){
    // Put your snippet here to assign user role
    // You have User Object ($user) to retrieve back the Role Option User selected with get_user_meta function.
    }

    The above code is just an example of how you should get started. Then add your code in theme’s functions.php.

    For more help, please check our response on your store ticket.

    Thanks

Viewing 1 replies (of 1 total)

The topic ‘Can you support these?’ is closed to new replies.