WPDev.one
Core Function
View Source on Trac ↗

render_block()

render_block( mixed $parsed_block )

Renders a single block into a HTML string.

Parameters 1 required

Name / Type Description
array

$parsed_block { An associative array of the block being rendered. See WP_Block_Parser_Block.

Required

Return Value

(string)
String of rendered HTML.

Function Information

Since Version
5.0.0
Source File
wp-includes/blocks.php
Advertisement