wp_clone_page
Duplicate a page EXACTLY, server-side — Elementor, Gutenberg or classic. An Elementor page's builder JSON is copied inside Xyle and never passes through your context — so nothing is truncated and nothing is rebuilt by hand. Use this for 'clone this page' instead of reading the source with wp_get_page and re-creating it: a large page's Elementor data is hundreds of KB and cannot be reproduced losslessly from the normalized node list. Creates a DRAFT by default; the source is untouched.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | Permalink slug for the new page (needs Connector v0.5.0+) | |
| title | Yes | Title for the new page | |
| status | No | draft (default) | publish | private | pending | |
| post_id | Yes | The SOURCE page/post ID to copy | |
| site_id | Yes | The WordPress site ID | |
| post_type | No | page (default) or post |