Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Basic Term Query with Tax array

// WP_Term_Query arguments
$args = array(
	'taxonomy'               => array( 'some', 'butter', 'yum' ),
	'fields'                 => 'ids',
	'hide_empty'             => true,
);

// The Term Query
$product_tag_query = new WP_Term_Query( $args );

// The Loop
if ( ! empty( $product_tag_query ) && ! is_wp_error( $product_tag_query ) ) {
	// do something
} else {
	// no terms found
}