Update WooCommerce Product
wc_update_productUpdate a WooCommerce product by ID, changing only the fields you provide. Unspecified fields remain unchanged.
Instructions
Update an existing WooCommerce product by ID. Only the fields you pass are changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | ||
| name | No | Product name. | |
| status | No | ||
| virtual | No | ||
| product_id | Yes | Product ID to update. | |
| description | No | ||
| manage_stock | No | ||
| regular_price | No | Regular price as string. | |
| stock_quantity | No | ||
| response_format | No | Output format: 'markdown' for human-readable, 'json' for machine-readable. | markdown |
| short_description | No |