get_super_admins

Retrieve a list of super admins.

Description

(array) get_super_admins(); 

Returns (array)

List of super admin logins


Usage

  1. if ( !function_exists( 'get_super_admins' ) ) { 
  2. require_once ABSPATH . WPINC . '/capabilities.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = get_super_admins(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/capabilities.php  
  1. function get_super_admins() { 
  2. global $super_admins; 
  3.  
  4. if ( isset($super_admins) ) 
  5. return $super_admins; 
  6. else 
  7. return get_site_option( 'site_admins', array('admin') );