W3cubDocs

/WordPress

get_super_admins()

Retrieve a list of super admins.

Description

Return

(array) 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' ) );
	}
}

Changelog

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