Filter hook 'render_block_data'

in WP Core File wp-includes/blocks.php at line 2021

Description

Filters the block being rendered in render_block(), before it's processed. have the same structure as this one. inner blocks were found. } have the same structure as this one. inner blocks were found. }

Occurrences

Filename Line Number
wp-includes/blocks.php 2021
wp-includes/class-wp-block.php 494

Parameters

Type Name Description
array $parsed_block { A representative array of the block being rendered. See WP_Block_Parser_Block.
array $source_block { An un-modified copy of `$parsed_block`, as it appeared in the source content. See WP_Block_Parser_Block.
WP_Block|null $parent_block If this is a nested block, a reference to the parent block.

PHP Doc

/**
	 * Filters the block being rendered in render_block(), before it's processed.
	 *
	 * @since 5.1.0
	 * @since 5.9.0 The `$parent_block` parameter was added.
	 *
	 * @param array         $parsed_block {
	 *     A representative array of the block being rendered. See WP_Block_Parser_Block.
	 *
	 *     @type string   $blockName    Name of block.
	 *     @type array    $attrs        Attributes from block comment delimiters.
	 *     @type array[]  $innerBlocks  List of inner blocks. An array of arrays that
	 *                                  have the same structure as this one.
	 *     @type string   $innerHTML    HTML from inside block comment delimiters.
	 *     @type array    $innerContent List of string fragments and null markers where
	 *                                  inner blocks were found.
	 * }
	 * @param array         $source_block {
	 *     An un-modified copy of `$parsed_block`, as it appeared in the source content.
	 *     See WP_Block_Parser_Block.
	 *
	 *     @type string   $blockName    Name of block.
	 *     @type array    $attrs        Attributes from block comment delimiters.
	 *     @type array[]  $innerBlocks  List of inner blocks. An array of arrays that
	 *                                  have the same structure as this one.
	 *     @type string   $innerHTML    HTML from inside block comment delimiters.
	 *     @type array    $innerContent List of string fragments and null markers where
	 *                                  inner blocks were found.
	 * }
	 * @param WP_Block|null $parent_block If this is a nested block, a reference to the parent block.
	 */