source/php/Editor/Tabs.php
protected function shouldOutput()
    {
        global $current_screen;

        $options = get_option('modularity-options');
        $enabled = isset($options['enabled-post-types']) && is_array($options['enabled-post-types']) ? $options['enabled-post-types'] : array();

        $validPostType = in_array($current_screen->id, $enabled);

        $action = $current_screen->action;
        if (empty($action)) {
            $action = (isset($_GET['action']) && !empty($_GET['action'])) ? $_GET['action'] : null;
        }

        $validAction = in_array($action, array(
            'add',
            'edit'
        ));

        return ($validPostType && $validAction) || $current_screen->id == 'admin_page_modularity-editor';
    }
protected function shouldOutput()
    {
        global $current_screen;

        $options = get_option('modularity-options');
        $enabled = isset($options['enabled-post-types']) && is_array($options['enabled-post-types']) ? $options['enabled-post-types'] : array();

        $validPostType = in_array($current_screen->id, $enabled);

        $action = $current_screen->action;
        if (empty($action)) {
            $action = (isset($_GET['action']) && !empty($_GET['action'])) ? $_GET['action'] : null;
        }

        $validAction = in_array($action, array(
            'add',
            'edit'
        ));

        return ($validPostType && $validAction) || $current_screen->id == 'admin_page_modularity-editor';
    }
protected function shouldOutput ( ) { global $ current_screen ; $ options = get_option ( 'modularity-options' ) ; $ enabled = isset ( $ options [ 'enabled-post-types' ] ) && is_array ( $ options [ 'enabled-post-types' ] ) ? $ options [ 'enabled-post-types' ] : array ( ) ; $ validPostType = in_array ( $ current_screen -> id , $ enabled ) ; $ action = $ current_screen -> action ; if ( empty ( $ action ) ) { $ action = ( isset ( $ _GET [ 'action' ] ) && ! empty ( $ _GET [ 'action' ] ) ) ? $ _GET [ 'action' ] : null ; } $ validAction = in_array ( $ action , array ( 'add' , 'edit' ) ) ; return ( $ validPostType && $ validAction ) || $ current_screen -> id == 'admin_page_modularity-editor' ; }
Check if tabs should be outputted
@return boolean
Check if tabs should be outputted