apply_template_to_page
Apply an Elementor template or page layout to an existing draft page, with automatic backup of the target for safe rollback.
Instructions
Copy the _elementor_data + _elementor_page_settings of a SOURCE template (or page) onto a TARGET page on the same site. Backs up the target first. Use to apply a section/page template to an existing draft.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | No | ||
| source_id | Yes | Source post id: a template or a page. | |
| target_page_id | Yes | ||
| backup_to_file | No | ||
| confirmation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| target_page_id | Yes | ||
| source_id | Yes | ||
| confirmation_token | No | ||
| expires_in_seconds | No | ||
| backup_meta_key | No | ||
| backup_file | No | ||
| css_flush | No |