wpseek.com
A WordPress-centric search engine for devs and theme authors
_excerpt_render_inner_columns_blocks is private and should not be used in themes or plugins directly.
_excerpt_render_inner_columns_blocks › WordPress Function
Since5.2.0
Deprecatedn/a
› _excerpt_render_inner_columns_blocks ( $columns, $allowed_blocks )
Access: |
|
Parameters: (2) |
|
Returns: |
|
Defined at: |
|
Codex: |
Render inner blocks from the `core/columns` block for generating an excerpt.
Related Functions: excerpt_remove_blocks, render_block_core_block, get_hidden_columns, get_pending_comments_num, render_block
Source
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; }