wordpress/wp-content/themes/basic/themify/themify-wp-filters.php
/**
 * Exclude Custom Post Types from Search - Filter
 *
 * @param $query
 * @return mixed
 */
Exclude Custom Post Types from Search - Filter
@param $query
@return mixed
Exclude Custom Post Types from Search - Filter @param $query @return mixed
function themify_search_query_action( $query ) {
	if ( $query->is_search && ! is_admin() && $query->is_main_query() ) {
	    remove_action( 'pre_get_posts', 'themify_search_query_action', 999 );
        $args = apply_filters('themify_search_args',array('post_type'=>$query->get('post_type')));
        if(isset($args['tax_query'])){
            $query->set( 'tax_query', $args['tax_query'] );
        }
	}
}
function themify_search_query_action ( $ query ) { if ( $ query -> is_search && ! is_admin ( ) && $ query -> is_main_query ( ) ) { remove_action ( 'pre_get_posts' , 'themify_search_query_action' , 999 ) ; $ args = apply_filters ( 'themify_search_args' , array ( 'post_type' => $ query -> get ( 'post_type' ) ) ) ; if ( isset ( $ args [ 'tax_query' ] ) ) { $ query -> set ( 'tax_query' , $ args [ 'tax_query' ] ) ; } } }
Exclude Custom Post Types from Search - Filter
 @param $query
 @return mixed
Exclude Custom Post Types from Search - Filter @param $query @return mixed