Close

Account

Documentation

Forum

Menu

Unable to set Contributor role by default for new registration

  • dhairyachandra
    April 4, 2018 at 2:36 am #30164

    I am working with my site where i want to add LOGIN and REGISTER for users.
    I want that when a user register himself/herself than he should be given Contributor role by default.

    I have set my Default role to Contributor but it goes to subscriber when user registers.

    Please help me out with this issue.

    Post count: 8334
    Adek
    April 4, 2018 at 5:03 pm #30178

    Hi dhairyachandra,

    For the default user registration role, please make sure if you have been choose Contributor on User Role option on the customizer and New User Default Role option on the WordPress General Setting.

    If you still getting the problem in there, please try to go edit this file wp-content/plugins/jnews-social-login/class.jnews-social-login.php then jump into line 569 and replace this code $default_member_role = $this->default_user_role; with this one $default_member_role = 'contributor';. Let me know if you still getting problem in there.

    Thank you

You must be logged in to reply to this topic.