Create WooCommerce Product
wc_create_productCreate a new WooCommerce product with price, description, categories, and images. Supports simple, grouped, external, and variable types, including Tickera ticket products.
Instructions
Create a new WooCommerce product. For Tickera ticket products, set type='simple' and the product will be available for Tickera bridge mapping. Supports simple products with price, description, categories, and images.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | Unique SKU. | |
| name | Yes | Product name. | |
| type | No | Product type. | simple |
| status | No | Product status. | publish |
| virtual | No | Virtual product (no shipping). Default true for tickets. | |
| categories | No | Array of category objects with id, e.g. [{id: 15}]. | |
| description | No | Full product description (HTML). | |
| downloadable | No | Downloadable product. | |
| manage_stock | No | Enable stock management. | |
| regular_price | No | Regular price as string, e.g. '25.00'. | |
| stock_quantity | No | Stock quantity if manage_stock is true. | |
| response_format | No | Output format: 'markdown' for human-readable, 'json' for machine-readable. | markdown |
| short_description | No | Short description (HTML). | |
| catalog_visibility | No | Catalog visibility. | visible |