create_timed_product
Set a time-availability rule for a WooCommerce product to restrict its visibility on the menu based on selected days and time windows.
Instructions
[WPCafe Pro] Create a time-availability rule for a product — restrict when it appears on the menu.
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": {
"product_id": "<product_id>",
"schedule": "<schedule>"
},
"name": "create_timed_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schedule | Yes | Schedule object defining available days and time windows. Example: { monday: { enabled: true, start: '06:00', end: '11:00' } } | |
| product_id | Yes | WooCommerce product ID to apply the rule to |