get_super_admins() WordPress Function
The get_super_admins() function is used to get a list of all the super administrators on a WordPress site. This function returns an array of all the usernames of the super administrators.
get_super_admins() #
Retrieves a list of super admins.
Return
(string[]) List of super admin logins.
Source
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' ) ); } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |