Project Type: WordPress Reference

Blocks API

Framework for registering, parsing, and rendering block-based content in WordPress. Since: 5.0.0 Source: wp-includes/blocks.php, wp-includes/block-editor.php, wp-includes/class-wp-block*.php Components Component Description functions.md Core block registration, parsing, and rendering functions class-wp-block.md Parsed block...

WP_Block_List

Class representing a list of block instances. Since: 5.5.0 Source: wp-includes/class-wp-block-list.php Description WP_Block_List is an iterable collection of WP_Block instances. It implements Iterator, ArrayAccess, and Countable interfaces for convenient traversal....

WP_Block_Parser

Parses a document and constructs a list of parsed block objects. Since: 5.0.0 Source: wp-includes/class-wp-block-parser.php Description WP_Block_Parser tokenizes HTML content containing block comment delimiters and builds a tree of block...

WP_Block_Styles_Registry

Class used for interacting with block styles. Since: 5.3.0 Source: wp-includes/class-wp-block-styles-registry.php Description WP_Block_Styles_Registry is a singleton that manages alternative visual styles for block types. Block styles provide different appearance options...

WP_Block_Supports

Class encapsulating and implementing Block Supports. Since: 5.6.0 Source: wp-includes/class-wp-block-supports.php Description WP_Block_Supports is a singleton that registers and applies block support features. Block supports provide common functionality like colors, spacing,...

WP_Block_Template

Class representing a block template. Since: 5.8.0 Source: wp-includes/class-wp-block-template.php Description WP_Block_Template represents a full-page template or template part built with blocks. Templates can come from themes (files), the database (customized),...

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...

WP_Navigation_Fallback

Manages fallback behavior for Navigation menus in block themes. Since: 6.3.0 File: wp-includes/class-wp-navigation-fallback.php Overview When a block theme uses the Navigation block without specifying a particular navigation menu, WordPress needs...

← Back to Chubes.net