woo_scaffold_product_tab
Generate a custom WooCommerce product data tab with fields and save logic for admin or frontend views.
Instructions
Generate a custom WooCommerce product data tab (admin) with fields and save logic, or a frontend product page tab.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"rootNamespace": "<rootNamespace>",
"tabName": "<tabName>",
"tabId": "<tabId>",
"tabLabel": "<tabLabel>"
},
"name": "woo_scaffold_product_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootNamespace | Yes | Plugin root namespace | |
| tabName | Yes | Tab name in PascalCase (e.g., "CustomFields") | |
| tabId | Yes | Tab ID slug (e.g., "custom_fields") | |
| tabLabel | Yes | Tab display label | |
| location | No | Where to add the tab (default: admin) | |
| fields | No | Comma-separated field names for admin tab |