bricks_update_page_schema
Define Schema.org structured data for a page. Accepts one or more schema objects, automatically adds @context, and outputs JSON-LD script in the page head.
Instructions
Set JSON-LD structured data (Schema.org) for a page. Automatically adds @context. Outputs as in the page head. Accepts a single schema object or an array of schemas.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | Yes | Schema.org JSON-LD object (or array of objects). Must include @type. Example: {"@type": "LocalBusiness", "name": "My Business", "address": {...}} | |
| page_id | Yes | WordPress page/post ID |