Site admins are stored in a site option as an array of usernames.
For example, using SQL in MySQLWorkbench you can do a query such as this:
SELECT * FROM wp_sitemeta where meta_key='site_admins';
To get back a serialised PHP array. Modifying this value by adding your username and user ID will make you a site admin.
If you’re just looking to see who is a site admin, you have these functions:
get_site_admins();
is_super_admin();
If on a single site rather than a multisite, any user with the delete_users capability will be regarded as a super admin.
Related Posts:
- Create mobile site with same content just different theme
- How to hide or remove unwanted widgets on Multisite installation?
- How can I diagnose a slow WordPress admin?
- How to enable a site administrator to edit users in a WordPress network/ multisite setup?
- WP-Admin not working properly at WordPress multisite with subdirectories
- Security in WordPress plugin development
- Hide a theme on list of themes in wp-admin without editing core files
- wp-admin slow in multisite
- Don’t allow access to wp-admin but allow admin-ajax requests to be fulfilled on frontend?
- Timeout While Upgrading Network in Multi-site
- Uploading Images to Multi-Site Causes Failure to HTTP Error
- Multisite wp-admin redirect loop
- WordPress network (multisite) /wp-admin/ redirect loop (ERR_TOO_MANY_REDIRECTS)
- Copy posts from one blog to another in multisite environment
- My subsites accidentally went from one multisite network to another. How do I change it back?
- Redirect loop (only for multisite network admin)
- Manipulate list of themes in wp-admin
- Creating a Post form outside of the Admin
- Subsites in Multisite installation throwing 404 error on wp-admin in IIS 7
- How to remove Broken Link Checker widget from admin menu
- How to set Active plugins as the default screen?
- Why can’t I delete original user in multisite? Options for manual removal
- Multisite network admin – URL / redirect error
- Cookie nonce is invalid – Multisite
- WordPress mutisite migration
- Why does the My Site dropdown show only a single domain?
- Super admin access to a forgotten WP instance?
- Iframe being removed only for some users when publishing a page
- WP Multisite with Domain Mapping : Preventing User Access to Dashboard
- 2 website 1 database… Local to online
- Moving wp-admin folder to a different host in a multisite environment
- Site’s admin created with wpmu_create_blog accessible only on 2nd attempt
- Is There A Plugin to Create WP Multisite Installs programatically
- Can’t log in to wp-admin after setting up Multisite
- Infamous admin login redirect
- WordPress multisite second site admin resulting in too many redirects error
- Multisite wp-admin redirecting to main wp-admin using NGINX
- WordPress Multisite: Login to all subsites at once
- How to Add Super Admin for WordPress multi-site
- network admin pages not linked to correctly
- Multisite – cannot remove specific sub-menu its parent menu. All sub-menus disappear
- How to have same admin login for more than one site?
- WP Admin Panel for Multi-site install not loading JavaScript for one Subdomain
- Backend freezing on certain pages of a subsite
- Admin user getting redirected to /wp-admin/user
- Pages redirect me to the homepage
- Many big issues in the website, WP_Debug not showing
- What could be changing my WP password and blocking plugins from installing?
- How to use same email for multiple users
- Mega WordPress Applications WPMU or otherwise
- Does the WordPress API work with multisite?
- wp_get_attachment_image_src multisite issue
- Transfer Subdomain site to Multisite setup
- WP REST API – Multisite – get posts from all sites
- How to automatically register widgets on new blog?
- Multisite configuration fails with css/js files
- Favicon plugin for WordPress running in network mode (multisite)? [closed]
- WordPress Multisite with VVV
- WordPress multisite,one theme,and different languages?
- Removing /blog/ from multisites cause infinite redirection
- Multiple WordPress Blogs on one host, using 1 WordPress installation, using multiple templates
- Avoid having infinite loops
- WPMU Development Environment
- turn single domain off
- WordPress Multilingual Theme using Multisite
- use get_sites subsite_id with get_bloginfo”() and/or get_custom_logo
- How can I update dev links for a live site?
- Multisite – One user allowed access to all sites?
- How to recover deleted site in WordPress Multisite?
- Entry page for a wordpress multisite
- WordPress Multisite dashboards redirect to homepage
- WordPress with Tor Onion Service (dual .com & .onion domains for same website)
- Use external database with local multisite
- Issue with wp_get_attachment_url() function for multisite
- Networksite/multisite is disabled ?, Why?
- Network Admin URL is shown to anyone before accessing a blog
- Canonical Resource URLs Across a Multisite Network 2012?
- how to migrate wpmu from one host to the other?
- Child Theme Based on Toolbox Not Found
- How To Disable Add new users On Subsites In Multisite?
- MultiSite: new Sites not showing up
- What is the best method of installing WP on multiple add-on domains?
- WP MultiSite: Can’t select database error after changing to new domain
- Different site different div content – Multisite
- Installing wordpress on a subfolder of adsense approved domain
- Launch Media Library for specific MU site
- multiple domains point to same site on WP-MU
- Can I replace the “Upgrade Network” with SQL query?
- How to convert multisite subdomain from http to https
- One membership area for two websites
- Multisite install in a subfolder won’t work with www
- Domain mapping breaks some plugin scripts and css
- How to force WP to create a users table in multisite configuration?
- Whats a good strategy for localising WordPress post and page content?
- Updating themes customized by users
- WordPress and multisites, the rigth choice?
- Multisite pagination with get_posts
- Best Way to Setup a Network of WP Sites?
- Single installation with sub-domains for admin and separate domains for sites
- Map WP Multisite blog.example.com to anotherdomain.com/blog?