block_parser_class WordPress Filter Hook

The block_parser_class hook is used to filter the block parser class used by the WordPress editor. This hook can be used to override the default block parser class with a custom class.

apply_filters( 'block_parser_class', string $parser_class ) #

Filter to allow plugins to replace the server-side block parser


Parameters

$parser_class

(string)Name of block parser class.


Top ↑

Source

File: wp-includes/blocks.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.