Project Type: WordPress Reference

Block Pattern Functions

WordPress provides wrapper functions for registering and managing block patterns and pattern categories. Pattern Functions register_block_pattern() Registers a new block pattern. register_block_pattern( string $pattern_name, array $pattern_properties ): bool Parameters: Parameter...

Block Patterns Hooks

Filters and actions for customizing block pattern behavior. Filters should_load_remote_block_patterns Controls whether patterns are loaded from the WordPress.org Pattern Directory. apply_filters( 'should_load_remote_block_patterns', bool $should_load_remote ): bool Parameters: Parameter Type Description...

Block Templates System

WordPress Block Templates (also known as FSE - Full Site Editing templates) are a fundamental part of block themes. They allow themes and plugins to define site structure using blocks...

Block Styles

Block styles provide visual variations that users can apply from the block toolbar. Defining Styles in block.json { "styles": [ { "name": "default", "label": "Default", "isDefault": true }, { "name":...

Block Supports

Block supports enable built-in WordPress features for your block. They add UI controls and automatically handle CSS generation. Basic Usage { "supports": { "align": true, "color": { "background": true, "text":...

Block Transforms

Block transforms allow converting blocks between different types, enabling flexible content editing. Transform Types Type Description block Transform from/to another block enter Transform when pressing Enter on empty block files...

Block Variations

Block variations create alternative versions of a block with pre-configured attributes and settings. Basic Variation Define in block.json: { "variations": [ { "name": "blue", "title": "Blue Card", "attributes": { "backgroundColor":...

Block Patterns API Overview

Block patterns are predefined block layouts that users can insert into content with a single click. Introduced in WordPress 5.5, patterns provide reusable design templates ranging from simple text layouts...

WP_Block_Pattern_Categories_Registry

The WP_Block_Pattern_Categories_Registry class manages pattern categories that organize block patterns in the inserter. Like its pattern counterpart, it implements the singleton pattern. File: wp-includes/class-wp-block-pattern-categories-registry.php Since: 5.5.0 Class Synopsis final class...

Block Context

Block context allows parent blocks to share data with descendant blocks without prop drilling. How It Works Parent block declares which attributes to expose via providesContext Child blocks declare which...

← Back to Chubes.net