Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
_excerpt_render_inner_columns_blocks( array $columns, array $allowed_blocks )
Render inner blocks from the core/columns
block for generating an excerpt.
Description Description
Parameters Parameters
- $columns
-
(array) (Required) The parsed columns block.
- $allowed_blocks
-
(array) (Required) The list of allowed inner blocks.
Return Return
(string) The rendered inner blocks.
Source Source
File: wp-includes/blocks.php
function _excerpt_render_inner_columns_blocks( $columns, $allowed_blocks ) { $output = ''; foreach ( $columns['innerBlocks'] as $column ) { foreach ( $column['innerBlocks'] as $inner_block ) { if ( in_array( $inner_block['blockName'], $allowed_blocks, true ) && empty( $inner_block['innerBlocks'] ) ) { $output .= render_block( $inner_block ); } } } return $output; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |