I need to get a list of all orders for some specific product ids. Currently, I’m doing a custom SQL query, but I want to make my plugin compliant with HPOS tables and new CRUD system.
I’ve been trying uisng meta_query options, but it doesn’t seem to get the job done.
New contributor
Vanquish is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.