woo_scaffold_shipping_method
Generate a WooCommerce shipping method class including calculate_shipping(), init_form_fields(), and ServiceProvider registration. Define a custom shipping method with namespace, class name, method ID, and title.
Instructions
Generate a WooCommerce Shipping Method class with calculate_shipping(), init_form_fields(), and ServiceProvider registration.
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>",
"className": "<className>",
"methodId": "<methodId>",
"title": "<title>"
},
"name": "woo_scaffold_shipping_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootNamespace | Yes | Plugin root namespace | |
| className | Yes | Class name in PascalCase (e.g., "FlatRateShipping") | |
| methodId | Yes | Shipping method ID (e.g., "custom_flat_rate") | |
| title | Yes | Shipping method title |