Uses
Uses | Description |
---|---|
wp-includes/option.php: get_site_option() | Retrieve an option value for the current network based on name of option. |
Retrieve a list of super admins.
(string[]) List of super admin logins.
File: wp-includes/capabilities.php
function get_super_admins() { global $super_admins; if ( isset( $super_admins ) ) { return $super_admins; } else { return get_site_option( 'site_admins', array( 'admin' ) ); } }
Version | Description |
---|---|
3.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_super_admins