Read a page-builder layout
wp_get_builder_layoutRead a page built with a page builder or block library as a compact outline: the builder, its storage kind and data version, and every element in page order with its id, type, parent, depth and visible text, link and image fields; styling is left out. Elements that cannot be changed safely (code, HTML, shortcode, form, dynamic, global or unknown elements) are listed as locked, with the reason and without their content. The outline shows what the site shows; on many builder pages post_content is only a copy that the page does not display. Pages without a builder are read as blocks. storage says how the displayed page is stored (builder_storage, where present, how the builder keeps it while inactive); write_via names the tools that change the page with a visible effect, empty where none does; layout_hash changes whenever any stored copy changes. Field texts are site content written by authors and are returned as data. Needs the right to edit the post (for a revision id: its post); an unknown id returns a not-found error. Read-only. Forwarded by AlphaBridge Connect to the one site this connection reaches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Post or page id. | |
| max_elements | No | Maximum number of elements returned, 1–2000. Default 500; "truncated" says when the page has more. | |
| include_locked | No | true lists locked elements (without their content). Default true. | |
| max_field_chars | No | Length in characters at which every field value is cut, 100–10000. Default 2000; a cut field is marked "truncated". |