I understand that your question is about to establish a default role for a site, such as ‘contributor’ or ‘author’, but also when the site does not exists yet.
I found a code snippet that changes the role when the user creates a blog:
function user_role_to_new_blog($blog_id, $user_id) {
add_user_to_blog($blog_id, $user_id, 'author' );
}
add_action( 'wpmu_new_blog', 'user_role_to_new_blog', 10, 2 );
The original link is here.
If you want a default role for the users of the already created site then you go to Network Admin -> Sites, select ‘Edit’ in a site, then ‘Settings’ tab and search for a ‘default role’ setting, you’ll see a text for the role and you can change it according to your preferences. After that, save the changes.
Cheers
Related Posts:
- Prevent user creating new users with specific roles
- A different role for each site in a multisite
- How to enable a site administrator to edit users in a WordPress network/ multisite setup?
- Possible to make custom role in multisite that can add sites?
- WPMU – new users are automatically subscribed to the main blog – how to prevent that?
- create_users capabilities on a role on multisite
- Allow Author on Site A capability to upload files on Site B in Multi Site
- Add menu items/actions for multisite users who are registered on the network but do not have a role or capability in any sites
- Restrict Capability of Administrator to Create, Edit and Delete Pages in Multisite
- Easily adding multiple existing users to a multisite site
- Multisite “Skip Confirmation Email” Log Out Problem
- How to give “author” user role appropriate capabilities to add PollDaddy polls? WordPress multisite
- Non-super-admin users cannot access CPT even though I have explicitly added the capabilities to the user role
- Where are available Roles Defined in the wp_ database?
- Why are my roles not visible in a Multi-site/Network?
- Site admin in a network install can’t edit users?
- How can I un-reserve a pending username registration?
- Allow user to select a theme to install when they signup
- wordpress multisite, how to keep user on subdomain throughout registration process?
- Troubleshooting a “You do not have sufficient permissions to access this page” error
- Issue with Custom Roles in Multisite
- Restrict Admin Capabilities in MultiSite
- Allowing periods in usernames
- Remove Site Name from register form – Multisite
- How can I display all Multisite blogs where this user is administrator?
- Add role across network in multisite
- Restrict users on multisite WordPress install
- Adding capabilities to super admins
- Get first_name and last_name on user_register hook
- How do I fix problems with users not being able to publish and only submit for review after upgrade of Multisites installation?
- Can’t add user to blog on registration (Multisite)
- Is there a wordpress function to cleanly delete an entry in the signups table?
- Need to manually regsiter user, send the password and retreive their user ID
- What are the differences in capabilities between the super-administrator and administrator?
- WordPress Multisite Layered Admins
- WordPress 3.2(Multisite) – How to add custom user meta fields to signup form?
- How to add multiple existing users to a multisite site?
- How to make wp-signup.php a 1-step process [closed]
- How To Remove Dashboard Menu Items for Multisite Users?
- How to get a user role of a specific blog in multisite?
- Can wp-cli display all users and their roles across all sites in a multisite instance?
- Can simple Admin save options in a Multisite?
- Identical members roles on all sites in a multisite
- Stuck with WordPress Multisite Custom signup page without .htaccess modification
- User registration on sub site
- In MultiSite, can some users automatically have Site Admin rights on all sites, without granting them Network Admin access?
- Restrict Admin Capabilities in MultiSite
- Disable domain redirect
- Within the database, where is the flag which says that a user has Super Admin rights?
- Update User Role Across Network when Main Site User is Updated
- current_user_can() always returns true if user is super admin
- Assign role to user on first login, if they are first (after admin)
- Avoid having infinite loops
- Get the User ID Who Owns a Given Blog ID in Multisite
- Create custom role, multisite, add users/sites?
- Make a user administrator to a sub directory site and a contributor to main site in multisite network
- Displaying a message upon user registration
- access the plugins for each role in WordPress multisite
- What sites are you registered to when joining a multisite?
- How to change user starting role in WordPress MultiSite?
- Add a user to a specific blog when they register?
- Auto creation of multisite blog on user registration
- Multisite – user email activation links broken
- Four columns in the wp_users table
- WP MU Register User across all blogs
- Is the Multi site functionality a viable option for Country and Language targeting?
- Subsite access without being a member of the subsite in wp multisite network
- Using the standard WordPress “New User” interface on a multisite
- Multisite user roles – capabilities not working
- Create Custom Multisite User Role to Reduce Capabilities
- How can you override the is_multisite check in wp-login.php for individual login/registration?
- How can I add custom meta on signup page and pass along to be used after blog activation?
- Users are being redirected to main site when trying to register on subsite of my Multisite network
- Admin permission for creating blogs in multisite
- How can I manually activate a new site in a wordpress multisite network?
- Remove superadmin role from the “change role to” menu in user listing
- User registration on two sites in same multisite
- Copy user role on multisite so the user can access subsites with same role
- How to sync roles across Multisite?
- How to fix that new users show up again in subsite of a Multisite?
- Allow editors to switch sites (Multisite)
- Multisite network admin – User’s role not showing up
- WordPress Multisite Add User
- WordPress multisite, allow non super admins to create sites
- User registration is currently not allowed
- WPMU If MU site has no administrator, deactivate site
- Multisite ‘Welcome User Email’ SITE_NAME returns ‘network’ name, not the name of the blog
- Give users acces to admin a single post or set up WP network?
- How can I restrict changing the max nested comment levels option to super admins?
- can’t create user without email for an author after converting single site to multisite
- User registration on wordpress multisite
- Language per user role, how can I achieve this?
- Admin users not able to see network menus
- Automatic registration on main site upon user registration on Multisite
- let user select roles in the wordpress subsites
- Redirect a user roll to a page after login in mutlisite network
- Register a user only to the root blog – WP Multisite
- Activate User account for Sub Site broken
- Possible to have duplicate usernames on different two multisites
- How to allow mixed case characters in multisite site name?