wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
_excerpt_render_inner_blocks is private and should not be used in themes or plugins directly.
_excerpt_render_inner_blocks › WordPress Function
Od5.8.0
Przestarzałyn/a
› _excerpt_render_inner_blocks ( $parsed_block, $allowed_blocks )
Dostęp: |
|
Parametry: (2) |
|
Powrót: |
|
Zdefiniowane na: |
|
Codex: |
Renders inner blocks from the allowed wrapper blocks for generating an excerpt.
Źródło
function _excerpt_render_inner_blocks( $parsed_block, $allowed_blocks ) { $output = ''; foreach ( $parsed_block['innerBlocks'] as $inner_block ) { if ( ! in_array( $inner_block['blockName'], $allowed_blocks, true ) ) { continue; } if ( empty( $inner_block['innerBlocks'] ) ) { $output .= render_block( $inner_block ); } else { $output .= _excerpt_render_inner_blocks( $inner_block, $allowed_blocks ); } } return $output; }