wordpress check is_admin code example
Example: wordpress is admin
// Determines whether the current request is for an
// administrative interface page.
is_admin()
// Determines whether the current request is for an
// administrative interface page.
is_admin()