bricks_set_page_elements
Replace the full Bricks elements array for a page or post by providing the elements JSON, post ID, and optional site and post type.
Instructions
Set/replace the entire Bricks elements array for a page/post. Takes the full elements JSON array.
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 | |
| elements | Yes | Full array of Bricks elements to set | |
| 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". |