bricks_build_page
Build a complete WordPress page by combining section presets or raw elements in one request. Automatically creates a backup before writing.
Instructions
Build a complete page from section presets and/or raw elements in a single request. Combines multiple sections into a full page layout. Automatically creates a backup before writing (plugin-side, cannot be skipped). THEME-FIRST: before generating raw elements, call bricks_get_theme_styles and bricks_list_global_classes — reuse existing tokens (button styles, utility classes, color palette) instead of inline styling. For buttons prefer settings.style: "primary"|"secondary" over manual _background/_typography. For links use the text-link element, not a styled text-basic.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | WordPress page/post ID | |
| sections | Yes | Array of sections to build. Each can be a preset name or raw elements. | |
| regenerate_css | No | Whether to regenerate CSS (default: true) |