I’m trying to get a specific product by its ID in WordPress using WP_Query and i’m struggling to find the right argument from yesterday. I’m stuck.I’ts from ‘product_cat’ taxonomy
$args = array(
'post_type' => 'product',
'posts_per_page' => 1,
'id' => $product_id,
);
Stupid questing but i’ve found the answer. Kept my brain struggling for so long…