Description
Filters the default context provided to a rendered block. have the same structure as this one. inner blocks were found. }
Occurrences
Filename | Line Number |
---|---|
wp-includes/blocks.php | 2057 |
wp-includes/class-wp-block.php | 497 |
Parameters
Type | Name | Description |
---|---|---|
array | $context | Default context. |
array | $parsed_block | { A representative array of the block being rendered. 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 default context provided to a rendered block.
*
* @since 5.5.0
* @since 5.9.0 The `$parent_block` parameter was added.
*
* @param array $context Default context.
* @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 WP_Block|null $parent_block If this is a nested block, a reference to the parent block.
*/