Filters the default context provided to a rendered block.
Parameters
$context
array- Default context.
$parsed_block
array- A representative array of the block being rendered. See WP_Block_Parser_Block.
blockName
stringName of block.attrs
arrayAttributes from block comment delimiters.innerBlocks
array[]List of inner blocks. An array of arrays that have the same structure as this one.innerHTML
stringHTML from inside block comment delimiters.innerContent
arrayList of string fragments and null markers where inner blocks were found.
$parent_block
WP_Block|null- If this is a nested block, a reference to the parent block.
Source
$context = apply_filters( 'render_block_context', $context, $parsed_block, $parent_block );
User Contributed Notes
You must log in before being able to contribute a note or feedback.