wp_elementor_save_page_data
Replaces the full Elementor element tree for a post after saving the previous tree as a private rollback snapshot. Ask the user for confirmation first and only call with confirm=true after approval. Use granular element tools when possible; call wp_elementor_flush_css after visual changes. Do not pass partial data like [{}]; data must be the complete Elementor tree returned by wp_elementor_get_page_data with targeted edits applied.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site_id": "<site_id>",
"post_id": "<post_id>",
"data": "<data>",
"confirm": "<confirm>"
},
"name": "wp_elementor_save_page_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Full Elementor element tree. | |
| confirm | Yes | Must be true only after the user explicitly confirms replacing the full Elementor page data. | |
| post_id | Yes | ||
| site_id | Yes | The connected site's id returned by list_sites. Call list_sites first; do not use a URL or WordPress post ID. |