App.php
public function isModularityPage()
    {
        global $current_screen;

        $result = true;

        if (strpos($current_screen->id, 'modularity') === false
            && strpos($current_screen->id, 'mod-') === false
            && ($current_screen->action != 'add'
                && (
                    isset($_GET['action'])
                    && $_GET['action'] != 'edit')
                )
            && $current_screen->base != 'post'
            && $current_screen->base != 'widgets') {
            $result = false;
        }

        return $result;
    }
public function isModularityPage()
    {
        global $current_screen;

        $result = true;

        if (strpos($current_screen->id, 'modularity') === false
            && strpos($current_screen->id, 'mod-') === false
            && ($current_screen->action != 'add'
                && (
                    isset($_GET['action'])
                    && $_GET['action'] != 'edit')
                )
            && $current_screen->base != 'post'
            && $current_screen->base != 'widgets') {
            $result = false;
        }

        return $result;
    }
public function isModularityPage ( ) { global $ current_screen ; $ result = true ; if ( strpos ( $ current_screen -> id , 'modularity' ) === false && strpos ( $ current_screen -> id , 'mod-' ) === false && ( $ current_screen -> action != 'add' && ( isset ( $ _GET [ 'action' ] ) && $ _GET [ 'action' ] != 'edit' ) ) && $ current_screen -> base != 'post' && $ current_screen -> base != 'widgets' ) { $ result = false ; } return $ result ; }
Check if current page is a modularity page
@return boolean
Check if current page is a modularity page