wp_update_widget_instance
Updates a WordPress text or custom HTML widget by its instance ID, replacing title and content to change what appears in the widget area.
Instructions
Update a text or custom_html widget instance by widget ID
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": {
"id": "<id>"
},
"name": "wp_update_widget_instance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Widget instance ID (e.g. text-2, custom_html-3) | |
| text | No | Content for text widgets | |
| title | No | ||
| content | No | HTML content for custom_html widgets |