Function: is_super_admin

is_super_admin( integer $user_id )

Determine if user is a site admin.

Parameters

Name Type(s) Default Value Description
$user_id integer false

(Optional) The ID of a user. Defaults to the current user.

Returns

boolean

True if the user is a site admin.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.