Function: is_user_admin

is_user_admin( )

Whether the current request is for a user admin screen.

e.g. /wp-admin/user/

Does not inform on whether the user is an admin! Use capability checks to tell if the user should be accessing a section or not current_user_can().

Returns

boolean

True if inside WordPress user administration pages.

WordPress Developer Newsletter

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