How to show given products only using product id array from specific category page in woocommerce
I would like to show only the list of product ids in the tax query using filter woocommerce_product_query
So I need to add an additional filter along with a tax query to filter to show only products with given ids.
$tax_query = array(‘add filter to show only specified products’)
$q->set( ‘tax_query’, $tax_query );