wordpress/wp-content/themes/basic/themify/themify-wp-filters.php
/**
     * Exclude Custom Post Types from Search - Filter
     *
     * @param $args
     * @return array
     */
Exclude Custom Post Types from Search - Filter
@param $args
@return array
Exclude Custom Post Types from Search - Filter @param $args @return array
function themify_search_in_category_filter( $args ) {
    $cat_search = themify_get( 'setting-search_settings','',true );
    if ( !empty( $cat_search )) {
        $post_type=is_array($args['post_type'])?$args['post_type'][0]:$args['post_type'];
        $taxonomy = 'product'===$post_type ? 'product_cat' : 'category';
        $args['tax_query']=themify_parse_category_args($cat_search, $taxonomy);
    }
    return $args;
}
function themify_search_in_category_filter ( $ args ) { $ cat_search = themify_get ( 'setting-search_settings' , '' , true ) ; if ( ! empty ( $ cat_search ) ) { $ post_type = is_array ( $ args [ 'post_type' ] ) ? $ args [ 'post_type' ] [ 0 ] : $ args [ 'post_type' ] ; $ taxonomy = 'product' === $ post_type ? 'product_cat' : 'category' ; $ args [ 'tax_query' ] = themify_parse_category_args ( $ cat_search , $ taxonomy ) ; } return $ args ; }
Exclude Custom Post Types from Search - Filter
 @param $args
 @return array
Exclude Custom Post Types from Search - Filter @param $args @return array