Function: is_admin

is_admin( )

Determines whether the current request is for an administrative interface page.

Does not check if the user is an administrator; current_user_can() for checking roles and capabilities.

For more information on this and similar theme functions, check out the Conditional Tags article in the Theme Developer Handbook.



True if inside WordPress administration interface, false otherwise.

WordPress Developer Newsletter

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