bricks_duplicate_element
Duplicate any element and its children on a Bricks Builder page, automatically assigning new IDs to each duplicated element.
Instructions
Duplicate an element and all its descendants within the same page. New IDs are generated for all duplicated elements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site key for multi-site support. Available: main. Defaults to "main". | |
| post_id | Yes | The page/post ID | |
| post_type | No | Post type slug. Use "pages" for pages, "posts" for posts, or any registered CPT slug (e.g., "product", "portfolio"). Defaults to "pages". | |
| element_id | Yes | The element ID to duplicate | |
| new_parent_id | No | Optional new parent for the duplicated element (defaults to same parent) |