Block Development
Block Styles
Block styles provide visual variations that users can apply from the block toolbar. Defining Styles in block.json { "styles": [...
Block Supports
Block supports enable built-in WordPress features for your block. They add UI controls and automatically handle CSS generation. Basic Usage...
Block Transforms
Block transforms allow converting blocks between different types, enabling flexible content editing. Transform Types Type Description block Transform from/to another...
Block Variations
Block variations create alternative versions of a block with pre-configured attributes and settings. Basic Variation Define in block.json: { "variations":...
Block Scripts and Styles
Block scripts and styles are defined in block.json and automatically registered when the block is registered. Asset Fields Overview Field...
Dynamic Blocks
Dynamic blocks render on the server at page load time, allowing blocks to display current data like posts, user info,...
Block Hooks (Hooked Blocks)
Block hooks automatically insert blocks at specified positions relative to other blocks, without modifying templates directly. Basic Usage In block.json:...
InnerBlocks
InnerBlocks allows blocks to contain other blocks as children, creating nested block structures. Basic Usage import { useBlockProps, InnerBlocks }...
Block Development
Guides for developing custom WordPress blocks. Source: Various block-related files in wp-includes/ Topics Topic Description block-json-schema.md block.json schema and fields...
block.json Schema Reference
The block.json file is the canonical way to register blocks in WordPress. It defines metadata, assets, and behavior for your...
Block Context
Block context allows parent blocks to share data with descendant blocks without prop drilling. How It Works Parent block declares...
Block Deprecations and Migrations
Deprecations allow you to update block structure while maintaining backward compatibility with previously saved content. Why Deprecations When you change:...