Project Type: WordPress Reference

Block Deprecations and Migrations

Deprecations allow you to update block structure while maintaining backward compatibility with previously saved content. Why Deprecations When you change: Attribute structure Save function output (HTML) Attribute sources or selectors...

Dynamic Blocks

Dynamic blocks render on the server at page load time, allowing blocks to display current data like posts, user info, or computed values. When to Use Dynamic Blocks Use dynamic...

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: { "name": "my-plugin/newsletter-signup", "blockHooks": { "core/post-content": "after" } } This...

InnerBlocks

InnerBlocks allows blocks to contain other blocks as children, creating nested block structures. Basic Usage import { useBlockProps, InnerBlocks } from '@wordpress/block-editor'; export default function Edit() { return ( <div...

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 Editor Frontend Use Case editorScript ✓ ✗ Block registration, edit...

WP_Block_Bindings_Source

Represents a registered block bindings source. Source: wp-includes/class-wp-block-bindings-source.php Since: 6.5.0 Access: private (internal use by registry) Overview This class is created internally by WP_Block_Bindings_Registry::register(). Do not instantiate directly; use register_block_bindings_source()...

Block Bindings API Functions

Core functions for block bindings source registration and management. Source: wp-includes/block-bindings.php register_block_bindings_source() Registers a new block bindings source. register_block_bindings_source( string $source_name, array $source_properties ): WP_Block_Bindings_Source|false Parameters Parameter Type Description $source_name...

Block Bindings API Hooks

Filters for customizing block bindings behavior. Filters block_bindings_source_value Filters the output value of a block bindings source. apply_filters( 'block_bindings_source_value', mixed $value, string $name, array $source_args, WP_Block $block_instance, string $attribute_name ):...

Block Attributes

Attributes define the data structure for your block. They determine what gets saved and how values are extracted from saved content. Attribute Definition Each attribute is defined with a type,...

Block Bindings

Block bindings connect block attributes to external data sources like post meta, site options, or custom sources. Overview Block bindings allow: Displaying post meta in blocks Connecting blocks to site...

← Back to Chubes.net