wp_widget_schema
The exact CONTENT fields a native Elementor widget spec accepts, so you never guess: counter's number is end (not value), accordion's answer is content (not text), etc. Returns fields, which are required, whether it needs Elementor Pro, and gotchas. Call before building with wp_create_page/wp_update_page. EDITOR V4 ATOMIC: pass e-tabs, e-div-block, e-flexbox, e-grid, e-heading, e-paragraph, e-image or e-button to get the V4 model — props, typed envelopes, child rules (tabs pair by index), the atomic spec shape and an example — all writable. (For STYLE keys use wp_style_keys instead.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| widget_type | Yes | e.g. counter, icon-box, accordion, form, heading, button — or 'all' for every widget's schema + the container vocabulary in ONE call (do this once per build instead of per-widget round trips) |