Uses
Uses | Description |
---|---|
wp-includes/blocks.php: render_block() | Renders a single block into a HTML string. |
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.
Render inner blocks from the core/columns
block for generating an excerpt.
(array) (Required) The parsed columns block.
(array) (Required) The list of allowed inner blocks.
(string) The rendered inner blocks.
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; }
Version | Description |
---|---|
5.2.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_excerpt_render_inner_columns_blocks