Allows render_block() to be short-circuited, by returning a non-null value.
Parameters
$pre_renderstring|null- The pre-rendered content. Default null.
$parsed_blockarray- An associative array of the block being rendered. See WP_Block_Parser_Block.
blockNamestringName of block.attrsarrayAttributes from block comment delimiters.innerBlocksarray[]List of inner blocks. An array of arrays that have the same structure as this one.innerHTMLstringHTML from inside block comment delimiters.innerContentarrayList of string fragments and null markers where inner blocks were found.
$parent_blockWP_Block|null- If this is a nested block, a reference to the parent block.
Source
$pre_render = apply_filters( 'pre_render_block', null, $parsed_block, $parent_block );
User Contributed Notes
You must log in before being able to contribute a note or feedback.