Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

woocommerce_order_itemmeta

query to get all product with meta key ‘ Personalzacion’

$meta_query = array(
	'relation' => 'AND',
	array(
		'key'     => 'meta_key',
		'value'   => ''_product_id'',
		'compare' => '=',
		'type'    => 'CHAR',
	),
	array(
		'key'     => 'meta_value',
		'value'   => '14',
		'compare' => '=',
		'type'    => 'CHAR',
	),
);