• Hi

    under this meneu
    domain.com/wp-admin/options-general.php?page=settings-user-role-editor.php > Default Roles > Other default roles for new registered user,

    I have added a few other roles but when a new user signed up, those new additional roles are not being assigned to the account. (only primary default role is assigned)

    Any idea what could go wrong? I have cleared all the cache.

    I am uisng Version 4.57.1
    php 7.4
    wordpress 5.6
    buddyboss theme
    no membership plugin so far
    using Learndash not sure if there is any conflict.

    Can you please tell me possibly where to look into to address the issue?

    Thank you

    • This topic was modified 3 years, 11 months ago by futureyoon.
    • This topic was modified 3 years, 11 months ago by futureyoon.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    Hi,

    Default role(s) are assigned to a new user automatically only in case role ID is not sent to the WordPress user insertion API. Also default roles are pre-selected at the new user registration page at wp-admin. In case new user record is sent to the WordPress (by some plugin for example) with apparently pointed role ID, default role(s) settings are ignored.

    Thread Starter futureyoon

    (@futureyoon)

    Hi Garagulia,

    Thank you for the update. Appreciate your time to take a look at the issue.
    I took your input and carried out a simple test as below.

    Intalled a brandnew WP site version 5.5
    Theme : twenty twenty
    Installed Plugins :
    1. Elementor v3.0.15 and Elmentor Pro v3.0.8
    2. User Role Editor v4.57.1
    3. WP Mail SMTP v2.5.1

    That’s it.
    I added other roles to be assigned for the new registered.
    I have even “reset” the user roles using the Tools from this plugin.

    Result
    It’s just assigning only default role which is ‘subscriber’. Not the other roles that I set to be auto added for the new registered.

    So..can I assume that there is an issue with the plugin is not assigning the extra roles for new registered then?
    Anything else I should look into? Please share some light here.

    Thank you

    • This reply was modified 3 years, 11 months ago by futureyoon.
    • This reply was modified 3 years, 11 months ago by futureyoon.
    Thread Starter futureyoon

    (@futureyoon)

    Just curious if you had a chance to take a look at the issue. Thank you

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Unfortunately, I can not repeat the issue. Recently made test showed that additional roles, set a default were added to the new registered user as expected.

    You wrote “It’s just assigning only default role…”. Clarify, how new user is created. Do you use “Users->Add New” (/wp-admin/user-new.php) page for this?
    If ‘Yes’, do you see the pre-selected other default roles at the “Other Roles” field under the “Role” one?

    If you answer Yes, on all questions above, try to deactivate all plugins except URE. Will it help?

    Thread Starter futureyoon

    (@futureyoon)

    Hi

    I have tested that it works fine when creating a new account from the backend.
    The issue is happening only from the frontend.
    In the settings, I turned on anyone can register > so people can register from the frontend.

    It leads me to a question then. Should this plugin assign the extra role(s) to the newly registered user created from the frontend? or it works only from the backend creation?

    I have deleted all plugins except URE and WC and WP Mail SMTP.

    Thank you.

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Hi,

    I reviewed the related code and confirm. Current version adds other (additional) default roles to the new user only in case if new user is added/registered by authorized user who has permissions to edit this user. Yes, it works only from the backend creation.

    Thread Starter futureyoon

    (@futureyoon)

    Hi,

    Thank you for the confirmation, Garagulia.
    My next question is ??
    Will the frontend user creation with extra roles will be part of the scope of future development? Or this is not the area your expertise will be used?

    Of course, if this is part of the development, I would love to hear any rough timeline.

    Thank you.

    Plugin Author Vladimir Garagulya

    (@shinephp)

    Hi,

    Try development version 4.58 (download it from “Advanced View”). It includes the requested update.

    Thread Starter futureyoon

    (@futureyoon)

    Yes it appears to be working from the frontend sign up too with the v4.58 although I see it has compatiblity issues just like what you mentioned earlier (those plugins or themes that assign the default role enforcefully hardcoded so I tested on the brand new WP site). Other than that, it does assign the multiple roles upon sign up. Thank you so much!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Other default roles for new registered user’ is closed to new replies.