Modify the WooCommerce Product Query and Set Visibility on Import
Filter WooCommerce shop archives with pre_get_posts using the right conditional tags, and set product visibility the modern way — the product_visibility taxonomy replaced _visibility postmeta in WooCommerce 3.0.
