24
votes
How do I remove/delete an old super admin user?
Oh I feel fairly stupid now. When looking at the user page again I noticed a checkbox for demoting the users access rights:
Super Admin - Grant this user super admin privileges for the Network.
Since ...
7
votes
Accepted
Can wp-cli display all users and their roles across all sites in a multisite instance?
List all the admins of each site
Side note: Dividing these up by site would also be handy.
Let's do that here:
We can list the url of each site with:
wp site list --field=url
We can list all ...
3
votes
Accepted
How do I use different domain for subdomains in WP Multisite?
Let's establish the baseline: it is possible to have the main site in example-domain-x.com and all subsites subdomains in example-domain-y.com. You just add subdomain1.example-domain-y.com (or ...
3
votes
Accepted
I want to create a 300 multi-site wordpress network using subdomains
300 sites within a multisite shouldn't be a problem by itself. Just be aware that things scale out quickly when you are operating that many sites. In particular, the number of posts will grow fast, ...
2
votes
Accepted
Assign role to user on first login, if they are first (after admin)
To set is the connected user belongs to the blog, you need to do that on hook wp_login that means the user is connected :
const ROLE_ADMINISTRATOR = "administrator";
const ROLE_CONTRIBUTOR = "...
2
votes
Can you have multi-site WP and keep users separate?
No, in a multisite, all sites have the same users table and user meta.
Keep in mind if you did manage this though, it would be trivial for them to find out it was a multisite based on code, and they ...
2
votes
Accepted
Network of multisites in Wordpress, create new site with all the contents of the main
You can use Multisite Clone Duplicator plugin.
1
vote
Accepted
How to use wp_set_password in a plugin?
I was using the wrong action hook. Replaced send_headers with init and it works.
Wrong
add_action('send_headers', array($this, 'do_things'));
Right
add_action('init', array($this, 'do_things'));
1
vote
Add the site's name as prefix when adding new users? Multisite
I have noticed that the code our friend shares has an error. Add the prefix twice.
I share other code with this error resolved.
<?php
add_filter( 'pre_user_login', 'sneakily_add_prefix_to_username'...
1
vote
How to change user starting role in WordPress MultiSite?
I just follow these steps. And its done now.
So if you want to change this, you’ve got a few options open to you:
Go to “My Sites” –> “Network Admin” –> “Sites” –> “All Sites” and select “Edit” on ...
1
vote
Accepted
What is meant by Multisite in WordPress?
Wordpress Multisite allows you to use one WordPress code installation to run multiple websites.
mywebsite1.com
mywebsite2.com
mywebsite3.com
etc
All run from the same code, can share the same ...
1
vote
Accepted
Buddypress profile pictures sync across Wordpress Multisite Network
After activating multisite I installed and network activated BuddyPress. I also added this line to wp-config.php: define ( 'BP_ROOT_BLOG', 2 ); where 2 is ID of your communitycommunity.mysite.com
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
multisite-user-management × 61multisite × 53
user-roles × 7
plugins × 6
users × 5
user-registration × 5
plugin-development × 4
user-access × 4
php × 3
customization × 3
capabilities × 3
wp-admin × 2
api × 2
buddypress × 2
woocommerce-offtopic × 1
database × 1
admin × 1
advanced-custom-fields × 1
forms × 1
rest-api × 1
security × 1
password × 1
wp-config × 1
wp-cli × 1
subdomains × 1