block_parser_class filter-hookWP 5.0.0

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

Usage

add_filter( 'block_parser_class', 'wp_kama_block_parser_class_filter' );

/**
 * Function for `block_parser_class` filter-hook.
 * 
 * @param string $parser_class Name of block parser class.
 *
 * @return string
 */
function wp_kama_block_parser_class_filter( $parser_class ){

	// filter...
	return $parser_class;
}
$parser_class(string)
Name of block parser class.

Changelog

Since 5.0.0 Introduced.

Where the hook is called

parse_blocks()
block_parser_class
wp-includes/blocks.php 1070
$parser_class = apply_filters( 'block_parser_class', 'WP_Block_Parser' );

Where the hook is used in WordPress

Usage not found.