Core Function
View Source on Trac ↗ block_core_navigation_filter_out_empty_blocks()
block_core_navigation_filter_out_empty_blocks( mixed $parsed_blocks ) Filter out empty "null" blocks from the block list.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $parsed_blocks array | the parsed blocks to be normalized. Required |
Return Value
(array)
the normalized parsed blocks.
Function Information
Since Version
5.9.0
Source File
wp-includes/blocks/navigation.php
Advertisement