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.


Top ↑

Return Return

(string) The rendered inner blocks.


Top ↑

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;
}

Top ↑

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.