Update a widget
update_widgetUpdate widget settings, relocate it to another sidebar, or adjust its position within a sidebar on a WordPress site.
Instructions
Change a widget's settings or move it to a different sidebar or position.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Widget id, e.g. "block-3". | |
| sidebar | No | Move it to this sidebar. | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. | |
| instance | No | Replacement settings. Read the widget first — this replaces the instance wholesale. | |
| position | No | New index within the sidebar. |