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.
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 |