/*
Theme Name: Triss
Theme URI: http://triss.wpengine.com/
Author: the DesignThemes team
Author URI: https://wedesignthemes.com/
Description: Triss multi-purpose theme for Websites.
Version: 2.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Text Domain: triss

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

function force_disable_portfolio_archive($query) {
    if (!is_admin() && $query->is_main_query() && is_post_type_archive('dt_portfolios')) {
        wp_redirect(home_url('/'));
        exit;
    }
}
add_action('pre_get_posts', 'force_disable_portfolio_archive');
