WordPress is_super_admin() Function

Beginner
4 min read
Updated: Nov 2026
3 examples
Conditional tag

Definition

In WordPress, is_super_admin() returns true when a user is a Super Admin. On a Multisite network this is a user who can manage the whole network.

On a normal single-site install, it returns true for a user who has full control, which means an Administrator. With no argument it checks the current user.

Syntax

Use it as the test of an if statement.

WordPress
if ( is_super_admin() ) {
  // code for the true path
} else {
  // code for the false path
}
CallWhat it does
is_super_admin()True if the current user is a Super Admin.
is_super_admin( 5 )True if the user with ID 5 is a Super Admin.
current_user_can( 'manage_network' )Another way to check network permission.

Do not confuse it with is_admin(), which checks the dashboard screen, not the user.

Full declaration
WordPress
is_super_admin( int|false $user_id = false ): bool

Parameters

ParameterDescription
$user_idOptional. The user ID. Default is false, which means the current user.

Return Value

Return ValueDescription
booltrue if the user is a Super Admin, otherwise false.

WordPress Examples

Three short theme examples. Each one shows what prints on the true path and the false path.

Example 1 — Check the current user

Show a tool only to Super Admins.

WordPress
<?php if ( is_super_admin() ) {
  echo '<a href="/wp-admin/network/">Network Admin</a>';
} ?>

How It Works

  1. is_super_admin() checks the current user.
  2. The link is printed only for a Super Admin.
  3. Everyone else sees nothing.

Example 2 — Check a user by ID

Test any user.

WordPress
<?php if ( is_super_admin( 5 ) ) {
  echo 'User 5 is a Super Admin.';
} else {
  echo 'User 5 is not a Super Admin.';
} ?>

How It Works

  1. The argument 5 is a user ID.
  2. The if branch handles true.
  3. The else branch handles false.

Example 3 — Network feature only

Combine with is_multisite().

WordPress
<?php if ( is_multisite() && is_super_admin() ) {
  echo 'Network settings are available.';
} ?>

How It Works

  1. is_multisite() checks the install.
  2. is_super_admin() checks the user.
  3. Both must be true.

Frequently Asked Questions

It returns true or false (a bool). Use it inside an if statement.
On Multisite, a Super Admin can manage every site and the network settings. A site Administrator can manage only one site.
It returns true for users who have full control, which means Administrators.
No. is_admin() checks if you are in the dashboard. is_super_admin() checks the user.

Next: is_tag()

Check if the current page is a tag archive.

is_tag() tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

7 people found this page helpful