Prevent wrong query detection and empty facets when using the Ultimate GDPR & CCPA plugin

// Prevent wrong query detection and empty facets when using the Ultimate GDPR & CCPA plugin
add_filter( 'facetwp_is_main_query', function( $is_main_query, $query ) {
  if ( 'ct_ugdpr_service' == $query->get( 'post_type' ) ) {
    $is_main_query = false;
  }
  return $is_main_query;
}, 10, 2 );