wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



render_block_data › WordPress Filter Hooks

Seit5.9.0
Veraltetn/v
apply_filters( 'render_block_data', $parsed_block, $source_block, $parent_block )
Parameter: (3)
  • (array) $parsed_block { An associative array of the block being rendered. See WP_Block_Parser_Block. @type string|null $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. }
    Erforderlich: Ja
  • (array) $source_block { An un-modified copy of `$parsed_block`, as it appeared in the source content. See WP_Block_Parser_Block. @type string|null $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. }
    Erforderlich: Ja
  • (WP_Block|null) $parent_block If this is a nested block, a reference to the parent block.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the block being rendered in render_block(), before it's processed.





Quellcode

$parsed_block = apply_filters( 'render_block_data', $parsed_block, $source_block, $parent_block );