render_block_core_navigation()WP 5.9.0

Renders the core/navigation block on server.

Хуков нет.

Возвращает

Строку. Returns the navigation block markup.

Использование

render_block_core_navigation( $attributes, $content, $block );
$attributes(массив) (обязательный)
The block attributes.
$content(строка) (обязательный)
The saved content.
$block(WP_Block) (обязательный)
The parsed block.

Список изменений

С версии 5.9.0 Введена.

Код render_block_core_navigation() WP 6.8

function render_block_core_navigation( $attributes, $content, $block ) {
	return WP_Navigation_Block_Renderer::render( $attributes, $content, $block );
}