bricks_get_page_elements
Retrieves the structured JSON of all Bricks elements for a page or post by its ID. Supports pages, posts, and custom post types with an optional site key.
Instructions
Get the Bricks elements array for a page/post by ID. Returns the structured JSON of all elements on that page.
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". |