Read a product
wp_wc_get_productRetrieve a single WooCommerce product by ID to check name, SKU, current/regular/sale prices, stock, and status; find IDs with the product list and change one with update.
Instructions
WooCommerce: get one product by id: id, name, sku, price (the current one), regular_price, sale_price, stock, stock_status and status. An unknown id returns a not-found error; wp_wc_list_products lists the products with their ids, and wp_wc_update_product changes one. Needs manage_woocommerce. Requires WooCommerce.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Product id. |