Woocommerce Filter Product using color and Category?

I am trying to integrate the woocommerce rest APIs with my Applications. All the defaults operations like get all products, get products by category etc are working perfectly fine.

but how i apply color filter in my code.?

bellow is my code

$data = array(
‘category’ => $category_ids,
‘attribute’ => ‘Options’,
‘attribute_term’ => ‘Blue’,
‘per_page’ => 100,
‘page’ => 1
);
$temp = ($woocommerce->get(‘products’, $data));

Read more here:: Woocommerce Filter Product using color and Category?

Leave a Reply

Your email address will not be published. Required fields are marked *