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
- 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
- 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
- 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
- In MultiSite, can some users automatically have Site Admin rights on all sites, without granting them Network Admin access?
- Disable domain redirect
- Update User Role Across Network when Main Site User is Updated
- 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
- What sites are you registered to when joining a multisite?
- How to change user starting role in WordPress MultiSite?
- 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
- Subsite access without being a member of the subsite in wp multisite network
- Using the standard WordPress “New User” interface on a multisite
- Create Custom Multisite User Role to Reduce Capabilities
- 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?
- 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
- Activate User account for Sub Site broken
- Possible to have duplicate usernames on different two multisites
- User Roles in multisite – odd behavior
- WordPress single sign on using cookies with shared user role functionality between more than 2 wordpress subdomains
- Can’t activate a user on multisite install
- How to auto create site after user sign up on multisite(network)
- Multisite error when adding a user: already a member of this site
- Activation of new Registered site fails on multisite
- Multisite – User creation for second site from first site?
- How to create child/sub user under parent user
- How to Create WPMu New User?
- Get users from all/specific blog by user_role and current_user role
- How does adding custom meta to signup form work?
- Possible to set new user’s site time zone at user creation using Gravity Forms?
- Is there any way to give all users access to one blog in a multisite network without using a plugin?
- multisite registration: check existing subdomains while typing
- How can I display all Multisite blogs where this user is administrator?
- Registration Page
- Multisite and users being listed on network administration dashboard and not main site dashboard
- Using a number for limiting registering or banning on multisite
- How to use same email for multiple users? [duplicate]
- Create service similar to wordpress.com [closed]