is_site_admin


is_site_admin ( $user_login = '' )

Parameters:
  • (string) user_login Optional. Username for the user to check. Default empty.
See:
Defined at:
Change Log:
  • M: U

Description

Determine if user is a site admin.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.

Related Functions

is_user_admin, is_super_admin, is_admin, has_site_icon, is_blog_admin

Top Google Results

User discussions

wpseek mobile