wordpress check is in admin page 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()