WordPress · JSON Structure

Wordpress Block Structure

A WordPress reusable block

Type: object Properties: 5
CMSContent ManagementOpen SourceWordPress

Block is a JSON Structure definition published by WordPress, describing 5 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id status type title content

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wordpress/refs/heads/main/json-structure/wordpress-block-structure.json",
  "name": "Block",
  "description": "A WordPress reusable block",
  "type": "object",
  "properties": {
    "id": {
      "type": "int32",
      "description": "Unique identifier for the block",
      "example": 15
    },
    "status": {
      "type": "string",
      "description": "A named status for the block",
      "example": "publish"
    },
    "type": {
      "type": "string",
      "description": "Type of post",
      "example": "wp_block"
    },
    "title": {
      "$ref": "#/components/schemas/RenderedContent"
    },
    "content": {
      "$ref": "#/components/schemas/RenderedContent"
    }
  }
}