woo_scaffold_email
Simplify WooCommerce email customization: generate a complete email class with trigger, content methods, and ServiceProvider.
Instructions
Generate a custom WooCommerce Email class with trigger(), get_content_html(), get_content_plain(), and ServiceProvider.
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>",
"emailId": "<emailId>",
"title": "<title>"
},
"name": "woo_scaffold_email"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rootNamespace | Yes | Plugin root namespace | |
| className | Yes | Email class name (e.g., "OrderApprovedEmail") | |
| emailId | Yes | Email ID slug (e.g., "order_approved") | |
| title | Yes | Email title (e.g., "Order Approved") | |
| recipientType | No | Who receives this email (default: customer) |