WordPress.org

Ready to get started?Download WordPress

Codex

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

Difference between revisions of "Function Reference/is super admin"

(Created page with '== Description == Determine if user is a network (super) admin. == Usage == %%% <?php is_super_admin( $user_id ); ?> %%% == Example == <pre> </pre> == Parameters == {{Para…')
 
m (Capital P)
Line 21: Line 21:
 
== Changelog ==
 
== Changelog ==
   
Since: [[Version 3.0|Wordpress 3.0.0]]
+
Since: [[Version 3.0|WordPress 3.0.0]]
   
 
== Source Code ==
 
== Source Code ==

Revision as of 00:10, 22 July 2012

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.