• Resolved JD VALY

    (@jd-valy)


    Hello,

    I created two roles with Ultimate Members. This is the last role created that appears by default when creating an account in the backoffice.
    How can we position the first role created at the top of the drop-down list?
    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • @jd-valy

    Set first role created to “Registration Default Role” at
    UM Settings -> Appearance -> Registration Form

    Thread Starter JD VALY

    (@jd-valy)

    Thank you for your reply.
    It works on registration form in frontend but in backend (user -> add) , the default role is always the last role created with UM.

    @jd-valy

    You are right set also the WP “New User Default Role” to your “first role created”.

    WP Settings -> General -> New User Default Role

    Thread Starter JD VALY

    (@jd-valy)

    I also tried this method but the setting does not register. It systematically repositions itself on the last role created.

    @jd-valy

    Use phpMyAdmin to look in your “options” table
    and search for option_name equal to default_role.

    option_value is your WP Default Role setting

    Thread Starter JD VALY

    (@jd-valy)

    Hello,
    I did it too, whatever value I put in default_role (subscriber, administrator…), in backend, the value remains the last role created with UM.

    @jd-valy

    Do you have any customizations in your active theme’s functions.php file
    or in the “Code Snippets” plugin?

    Thread Starter JD VALY

    (@jd-valy)

    I found ! There was a function in function.php which set the default role. I removed the function, and now everything works. Thank you again for your help

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @jd-valy

    Thanks for letting us know how it resolves your issue. I’m marking this as resolved now.

    Regards,

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Default role in new_user.php’ is closed to new replies.