render_block


render_block ( $parsed_block )

Parameters:
  • (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. }
Returns:
  • (string) String of rendered HTML.
Defined at:

Description

Renders a single block into a HTML string.

Related Functions

render_block_core_rss, render_block_core_file, render_block_core_image, render_block_core_block, render_block_core_cover

Top Google Results

User discussions

wpseek mobile