wp_v4_style
Style Editor V4 (atomic) elements natively on a page, post, component or library template: plain CSS per element, with &:hover/&:focus/&:active and @media(--tablet)/@media(--mobile) blocks, written to the element's own style class through Elementor 4.3's manage-elements; also global classes and interactions. dry_run previews before/after CSS; writes are snapshotted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview the resulting CSS without saving | |
| post_id | Yes | Page, post, component or template id | |
| publish | No | Default true. false keeps the change as an Elementor editor draft | |
| site_id | Yes | The WordPress site ID | |
| operations | Yes | JSON array (1-50) of {element_id, css?, mode?: "patch"|"replace", classes?: [global class labels], interactions?: [native shape]}. Example: [{"element_id":"16f4acad","css":"background-color:#0b5fff; padding:24px; &:hover{background-color:#003cbd} @media(--mobile){padding:12px}"}] | |
| include_pending_draft | No | Publish even though the post has an unsaved editor draft (it is published too) |