src/Core/Application.php
public function isWordPressAdmin()
    {
        if (isset($GLOBALS['current_screen']) && is_a($GLOBALS['current_screen'], 'WP_Screen')) {
            return $GLOBALS['current_screen']->in_admin();
        } elseif (defined('WP_ADMIN')) {
            return WP_ADMIN;
        }

        return false;
    }
public function isWordPressAdmin()
    {
        if (isset($GLOBALS['current_screen']) && is_a($GLOBALS['current_screen'], 'WP_Screen')) {
            return $GLOBALS['current_screen']->in_admin();
        } elseif (defined('WP_ADMIN')) {
            return WP_ADMIN;
        }

        return false;
    }
public function isWordPressAdmin ( ) { if ( isset ( $ GLOBALS [ 'current_screen' ] ) && is_a ( $ GLOBALS [ 'current_screen' ] , 'WP_Screen' ) ) { return $ GLOBALS [ 'current_screen' ] -> in_admin ( ) ; } elseif ( defined ( 'WP_ADMIN' ) ) { return WP_ADMIN ; } return false ; }
Determine if we currently inside the WordPress administration.

@return bool
Determine if we currently inside the WordPress administration .