is_site_admin

DeprecatedDeprecated

This function has been deprecated. Use is_super_admin() instead.

SummerySummery

Determine if user is a site admin.

Syntax

is_site_admin( string $user_login = '' )

DescriptionDescription

Plugins should use is_multisite() instead of checking if this function exists to determine if multisite is enabled.

This function must reside in a file included only if is_multisite() due to legacy function_exists() checks to determine if multisite is enabled.

ParametersParameters

$user_login

(string) (Optional) Username for the user to check.

Default value: ''

SourceSource

File: wp-includes/ms-deprecated.php


			

ChangelogChangelog

Changelog
Version Description
3.0.0 Use is_super_admin()
MU (3.0.0) Introduced.

See alsoSee also

Scroll to Top