render_block_core_navigation()
Renders the core/navigation block on server.
No Hooks.
Return
String
. Returns the navigation block markup.
Usage
render_block_core_navigation( $attributes, $content, $block );
- $attributes(array) (required)
- The block attributes.
- $content(string) (required)
- The saved content.
- $block(WP_Block) (required)
- The parsed block.
Changelog
Since 5.9.0 | Introduced. |
render_block_core_navigation() render block core navigation code WP 6.8
function render_block_core_navigation( $attributes, $content, $block ) { return WP_Navigation_Block_Renderer::render( $attributes, $content, $block ); }