WPDev.one
Core Function
View Source on Trac ↗

is_super_admin()

is_super_admin( mixed $user_id = false )

Determines whether user is a site admin.

Parameters 1 required

Name / Type Description
(int

| false) $user_id Optional. The ID of a user. Defaults to false, to check the current user.

Required

Return Value

(bool)
Whether the user is a site admin.

Function Information

Since Version
3.0.0
Source File
wp-includes/capabilities.php
Advertisement