Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

test snippet

$tax_query = array(
	array(
		'taxonomy'         => 'product_cat',
		'terms'            => '6',
		'field'            => 'term_id',
		'operator'         => 'IN',
		'include_children' => false,
	),
);