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.
Source
File: wp-includes/blocks.php
Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |