WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/is super admin

Description

Determine if user is a network (super) admin.

Usage

 <?php is_super_admin$user_id ); ?> 

Example


Parameters

$user_id
(int) (optional) The ID of a user.
Default: Defaults to the current user.

Returns

(BOOLEAN) 
True if the user is network (super) admin

Changelog

Since: WordPress 3.0.0

Source Code

is_super_admin() is located in wp-includes/capabilities.php.

Related

Roles_and_Capabilities

See also index of Function Reference and index of Template Tags.