I want to list out posts by querying multiple meta data's in order to pipe them into an xarg wp post delete --force --defer-term-counting
Eg.
$meta_query = array(
'relation' => 'AND',
array(
'meta_key' => 'first_key',
'meta_value' => 'first_value',
),
array(
'meta_key' => 'second_key',
'meta_value' => 'second_value',
),
);
But all I have found in the documentation and in my googling's is how to use a single meta:
wp post list --fields=ID,first_key --meta_key=first_key --meta_value=first_value
The strange thing is that I haven't found anyone else asking this, so I haven't found a negative answer saying it isn't possible either.