Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Support request] User is created with wrong user role

Simple Membership Plugin › Forums › Simple Membership Plugin › User is created with wrong user role

  • This topic has 6 replies, 2 voices, and was last updated 3 years, 1 month ago by mbrsolution.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • October 9, 2023 at 11:25 am #27254
    deejay
    Participant

    Hello,

    and congratulations on that great plugin.

    I’m currently testing memberships subscriptions. Everything goes well except user role. Everything is set for new user to have the “premium_member” user role :
    – In wordpress , default_role has been set to premium_member
    – In membreship level options, default wordPress role is set to : Premium Member

    But when user is created (either manually or after visiting the “complete your registration link” received on email his user role is “subscriber”

    Am i missing something ?

    Thank you

    October 10, 2023 at 8:55 am #27259
    mbrsolution
    Moderator

    Hi, thank you for reaching out to us.

    – In wordpress , default_role has been set to premium_member

    How did you create the above user role in WordPress?

    WordPress has 5 default roles you can use when adding a new membership level as per the following instructions https://simple-membership-plugin.com/adding-membership-access-levels-site/.

    WordPress Default User Roles

    -Subscriber
    -Contributor
    -Author
    -Editor
    -Administrator

    Kind regards.

    October 10, 2023 at 11:37 am #27262
    deejay
    Participant

    Hello, and thank you for your reply.

    I created it a long time ago, probably with “user role editor” or “members by memberpress”.

    Custom user role is essantial when you need to restrict lots of thing on a website, such as featured image based on membership level, video quality based on membership level, hide ads or not, hide in-video ads or not etc…So when user registers, custom user role is assigned and all the things that have to be hidden or shown to new user are automatically shown or hidden. Because no membership plugin allows to restrict everything.

    Is it a problem ?

    Best regards

    October 10, 2023 at 4:55 pm #27263
    deejay
    Participant

    Hello again,

    I set default WordPress Role to “contributor” (see here >> https://drive.google.com/file/d/1GuEpAnPBtFjXwoYMVECIwnwZb-HqcAJY/view?usp=sharing), then i registred in test mode with Stripe and it’s the exact same result. Member is created with “subscriber” user role.

    Any idea ?

    Best regards

    October 10, 2023 at 9:58 pm #27264
    mbrsolution
    Moderator

    Are you allowing your members to log in using WP login widget or are you only allowing your members to log in using our plugins login widget?

    The wp user entries are going to have a role of “subscriber” so that should not be any security concern (unless you are doing something on this site to give some membership levels a higher permission). You can review each of your membership level configuration and make sure you are setting the role to what you really want/need (normally it should be a “contributor” or “subscriber” role).

    If you don’t want anyone to register via WP registration process, please read the following documentation.

    https://simple-membership-plugin.com/anyone-can-register-option-wordpress/

    Kind regards.

    October 11, 2023 at 7:47 am #27268
    deejay
    Participant

    Hello

    “Are you allowing your members to log in using WP login widget or are you only allowing your members to log in using our plugins login widget?”

    I have a custom login page, but not sure about how this could affect user role

    “You can review each of your membership level configuration and make sure you are setting the role to what you really want/need (normally it should be a “contributor” or “subscriber” role).”

    Not sure about what you mean here either. As written in previous post, regardless of the user role i set in membreship level options (contributor, author or whatever), new members are assigned “subscriber” user role. Or did you mean that i have to change user role for each member manually ?

    Best regards

    October 11, 2023 at 9:28 am #27269
    mbrsolution
    Moderator

    I have a custom login page, but not sure about how this could affect user role.

    Is this custom login page what your users are using to log in and or your members? The best option to manage a membership site is to only use a membership plugin. This will prevent the users ie, members from becoming confused with too many different login widgets.

    Not sure about what you mean here either. As written in previous post, regardless of the user role i set in membership level options (contributor, author or whatever), new members are assigned “subscriber” user role. Or did you mean that i have to change user role for each member manually ?

    As I mentioned above our plugin works really well when it manages the registration and login of your members. That is the reason why I shared the following documentation above. Our plugin uses the WP user records for integration with plugins like WooCommerce, bbPress etc. The WP user role is just there in the background.

    https://simple-membership-plugin.com/anyone-can-register-option-wordpress/

    Let me know if the information above makes sense.

    Kind regards.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy