• Resolved simondunant

    (@simondunant)


    Hi There

    Is it possible to set an ‘additional user role’ via ERForms, it seems that you can only set the primary user role via an ERForm registration form, which appears to compete with my learndash plugin (which sets Subscriber whenever courses are assigned).

    Thanks

    Simon

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author easyregistrationforms

    (@easyregistrationforms)

    Thank you for contacting us. You can configure a different user role from Form Dashboard->User Account->Assign User Role.

    Let us know if you have any more queries.

    Thread Starter simondunant

    (@simondunant)

    I’m aware of that, however that sets a primary user role and overwrites the current role, it does not appear to ‘add an additional role’

    Plugin Author easyregistrationforms

    (@easyregistrationforms)

    This feature is not available in the current version. However, we will add it soon.

    Thread Starter simondunant

    (@simondunant)

    That would be amazing if you could!! thank you!

    I figured out that WordPress was setting the default user role upon registration through Easy Registration Forms which is overwriting the default role registration setting on my Easy Registration Forms – so I used some code in the functions.php file to remove the subscriber role at registration so WordPress wasn’t setting the default subscriber role

    add_action( ‘user_register’, ‘myplugin_registration_save’, 10, 1 );

    function myplugin_registration_save( $user_id ) {
    $user = new WP_User( $user_id );

    $user->remove_role( ‘subscriber’ );
    }

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘set additional User Role at registration’ is closed to new replies.