New Blog Default Role ??


1, I am using the membership plugin,
2. i am using user-role-editor plugin to create a role Basic
3. and i installed this plugin to set "Basic" role for new blog

but still new user on new blog assigned administrator role

any idea??

  • qubedinc


    They are signing up through membership plugin. membership assign them properly level and subscription.

    I change the plugin and put this code in mu-plugins folder to assign "basic" role to user for new blog. basic role is create by plugin "user-role-editor".

    function ds_new_user_meta($blog_id, $user_id) {
    add_user_to_blog($blog_id, $user_id, 'basic' );
    add_action( 'wpmu_new_blog', 'ds_new_user_meta', 10, 2 );

    and role is also assign but when user login to his blog then i received error message
    "You don’t have permission to view this site. Please contact the system administrator."

    but if i login in site admin using admin user and on "user-role-editor" plugin again update the basic role and again check "Apply to All Sites" than user can login properly.

    i am not sure what problem either when new blog is created the basic role with its capabilities not update in new blog .

    i dont want to manually apply setting again and again.

    can you put your view on it

    User Role Editor is active only on main site (it is not activated on network).
    new blog role assignment is in mu-plugin folder always active.
    membership plugin is active on main site only.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.