Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    Simply creating a field called “role” won’t necessarily translate into assigning a WordPress role based on that field.

    All custom fields are simply WP user meta fields. Yes, you can assign a role based on the value of a field, but you need to set that up yourself.

    You can use the wpmem_post_register_data action to run custom actions (such as setting a role) during registration. There is a function in the API to simplify setting a user role (wpmem_update_user_role()). You can use that function in a function hooked to the wpmem_post_register_data action.

    Thread Starter karthik471

    (@karthik471)

    Hi,

    Currently I had created a radio button for roles. My problem is that these value of the radio button is not saved in the user panel. It should be checked to whatever is the value that the user has selected during the registration. But it is showing as unchecked. Similarly with the user id, it should show the value that the user has entered, but right now it is blank.

    Plugin Author Chad Butler

    (@cbutlerjr)

    In the image of the settings (728f52e0-97ac-4dfc-b20d-0fa1b3984cc1.jpg), it looks like you have a space in between the saved value and the comma like this: |distributor ,

    It shouldn’t have any whitespace, like this: |distributor,

    That could be part of the problem.

    • This reply was modified 5 months, 1 week ago by Chad Butler.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.