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