wp_replicate_node
Duplicate an element and its whole subtree N times as siblings. THE way to build a row of cards, a pricing grid, a team list, a logo strip. Build ONE to spec, screenshot it, then replicate and swap only the content. Hand-authoring six cards produces six slightly different cards — each is another chance to typo a hex or miss a radius, and nothing holds them together afterwards. A verified source copied six times cannot drift. Every id is re-issued (elements AND repeater item _ids), because Elementor keys per-element CSS off them: duplicated ids leak styling between copies and make editing one silently change another. Response returns id_maps (original id -> new id per copy) so you can patch a specific copy's insides without re-reading the page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | How many copies to add after the source, 1-50. A 3-up row from one built card = count 2. | |
| dry_run | No | Preview without writing. | |
| node_id | Yes | Element id to duplicate (from wp_get_page outline). Usually the card CONTAINER, not a widget inside it. | |
| post_id | Yes | Page/post numeric id | |
| site_id | Yes | WordPress site id | |
| overrides | No | Per-copy content, keyed by the ORIGINAL descendant id: [{"kick1":{"title":"Reliable"}},{"kick1":{"title":"Secure"}}]. Vary content only — styling should stay identical by construction. |