render_block
render_block ( $parsed_block )
Parameters:- (array) parsed_block { An associative 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. }
Returns:- (string) String of rendered HTML.
Defined at: - Introduced in WordPress: 5.0.0
- Deprecated in WordPress: —
Description
Renders a single block into a HTML string.