Core Function
View Source on Trac ↗ render_block_core_navigation_submenu()
render_block_core_navigation_submenu( mixed $attributes, mixed $content, mixed $block ) Renders the `core/navigation-submenu` block.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $attributes array | The block attributes. Required |
| $content string | The saved content. Required |
| $block WP_Block | The parsed block. Required |
Return Value
(string)
Returns the post content with the legacy widget added.
Function Information
Since Version
5.9.0
Source File
wp-includes/blocks/navigation-submenu.php
Advertisement