Build an Elementor page from a spec
wp_el_buildConverts a compact section/column/widget spec into Elementor data and writes it to a new or existing WordPress page; run dry-run first to preview changes.
Instructions
Convert a compact section/column/widget spec into Elementor data and (unless dry_run) write it. If post_id is omitted, a new page is created. Always inspect the dry_run output first. Widget settings use Elementor setting keys (e.g. heading: {title, header_size}; button: {text, link:{url}}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | ||
| create | No | Create a new page when post_id is absent | |
| confirm | No | Must be "overwrite" when writing to an existing page | |
| dry_run | No | ||
| post_id | No | Existing page to overwrite |