Updating product metadata using REST API
-
Hi,
According to the REST API documentation (https://woocommerce.github.io/woocommerce-rest-api-docs/#product-properties) there is a meta_data property. Has anyone been able to use this to modify custom fields?
This code is not working:
$data = [ 'meta_data' => [ [ '_custom_field' => '24.54' ] ] ]; print_r($woocommerce->put('products/794', $data));
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Updating product metadata using REST API’ is closed to new replies.