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?
- Wp-admin wrongly redirecting on multisite
- Unable to change blog language in multisite
- Multisite logged into one wp-admin, move to another sites wp-admin asked to login again
- Memory growth with new additions to WordPress Multisite
- How to disable a network enabled plugin for just one site?
- Set default avatar network-wide
- wp-activate.php causing white screen of death
- Multisite: Develop locally using production images with .htaccess
- Multisite with entirely different domains?
- How To Modify New Sub Blog Immediately When Super Administrator Creates It?
- Can you set up a wordpress (multi-site) network to work across multiple hosting accounts?
- Possible to create a multisite network where the main site is non-WP?
- Multiple WP Sites Same Server – Share WP Base?
- Poor performance on multisite install
- Cannot access wp-admin after disabling all plugin
- Auto Redirect after login
- Start with multi-site feature now or later?
- Adding new sites to Multisite won’t register in Dashboard
- Add menu items/actions for multisite users who are registered on the network but do not have a role or capability in any sites
- Blocks Rest API rest_cannot_delete
- htaccess file for multiple CMS’s (multisite wordpress + wolfcms) on same domain but different subdirectories
- Redirect One Multisite to Another
- Multisite Installation is all the same site
- Some doubts related to Multi Installation → Media of one of the site can be used on the others?
- Redirect to localhost after installing Multisite on server
- How can I hide certain sidebars from some users?
- Hosting 2 WordPress websites in /public_html/ & /public_html/subdirectory/ at the same time
- wp_get_attachment_image_src returns incorrect URL on multisite
- Locking one blog of many in a multi user/blog WordPress installation
- How to modify wp_config file for set up subdirectory?
- Activation Account Email
- How to automatically translate plugin using translate.wordpress.org
- May I do multiple micro-sites with different themes in a single wordpress without subdirectory nor subdomain separation?
- Multisite htaccess file causing segfault (Segmentation fault 11)
- Multisite Smtp Server
- Images uploaded after adding multisite do not get loaded in any domain of the multisite network
- When hooking wp-cron to system
- WordPress network, add extra directory to subsite urls
- Register a user only to the root blog – WP Multisite
- Update Same Contents on every Page
- WooCommerce API Returns 401
- Define default settings for new sites on multisite network with mu-plugin
- Multisite + wp_mail – Route Via Site Conditionally
- MU domain mapping without using a plugin
- Multisite authorization error 401
- How create a multisite setup with “phantom” accounts and passwords?
- is there a if multisite have posts function?
- Multisite – mix sites that use subdomains with sites that use paths
- Pick your brain on wp-config.php if statement for multisite
- WordPress Multisite restict user access
- get_category_link() or get_tag_link() return wrong category/tag base in wordpress multisite
- WordPress Multisite Domain Mapping Issue: Subsite Domain Redirecting to Primary Domain