is_admin


is_admin ( No parameters )

Returns:
  • (bool) True if inside WordPress administration interface, false otherwise.
Defined at:

Description

Determines whether the current request is for an administrative interface page.Does not check if the user is an administrator; use current_user_can() for checking roles and capabilities. For more information on this and similar theme functions, check out the [Conditional Tags](https://developer.wordpress.org/themes/basics/conditional-tags/) article in the Theme Developer Handbook.

Related Functions

is_user_admin, is_site_admin, is_blog_admin, is_super_admin, is_network_admin

Top Google Results

User discussions

wpseek mobile