WPDev.one
Core Function
View Source on Trac ↗

get_comment_delimited_block_content()

get_comment_delimited_block_content( mixed $block_name, mixed $block_attributes, mixed $block_content )

Returns the content of a block, including comment delimiters.

Parameters 3 required

Name / Type Description
mixed

(string | null) $block_name Block name. Null if the block name is unknown, e.g. Classic blocks have their name set to null.

Required
$block_attributes
array

Block attributes.

Required
$block_content
string

Block save content.

Required

Return Value

(string)
Comment-delimited block content.

Function Information

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