WooCommerce-REST-API-Client-Library
WooCommerce-REST-API-Client-Library copied to clipboard
Create and update product tags and catagories is not work
Hello my dear:
using your package, i have successfully created or updated the product excepts the 'tags' and 'catagories' ,'related_ids' three fields, I tried several times, but still not work,the code like this:
$client->products->update(194, array('related_ids'=>array(38,37), 'tags'=> array('12','34'), 'catagories'=>array("Accessories","Tshirts")));
I don't know whether is something wrong with my code or your function is not support change these fileds.
Hope you can help me soon.
Best regards.