getWidget
Retrieve a single widget's raw HTML, CSS, and JS source code by its widget ID to review or edit.
Instructions
Get a single widget - Fetch a single widget record by widget_id. Returns the raw HTML/CSS/JS source. Read-only.
Use when: you have a widget_id (from listWidgets or admin) and want the widget's SOURCE code to edit or audit. To preview the rendered widget on the front-end, embed it on a page via [widget=Name] shortcode and view the page.
Required: widget_id (path parameter).
See also: listWidgets (enumerate), updateWidget (modify).
Returns: { status: "success", message: [{...record}] } - the message array contains 1 record with all widget fields (widget_data = HTML, widget_style = CSS, widget_javascript = JS, plus metadata).
For the full field list, see listWidgets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| widget_id | Yes |