facetwp woocommerce product visibility

<?php
// example for product visibility for woocommerce query
// hides out of stock 

'tax_query' => array(
    array(
        'taxonomy' => 'product_visibility',
        'field'    => 'name',
        'terms'    => 'outofstock',
        'operator' => 'NOT IN',
    ),
),

// other terms: 'exclude-from-search', 'exclude-from-catalog', 'featured', 'outofstock'
// ref: https://wordpress.stackexchange.com/questions/231118/wp-query-exclude-hidden-products-from-woocommerce-product-list