Core Function
View Source on Trac ↗ extract_serialized_parent_block()
extract_serialized_parent_block( mixed $serialized_block ) Accepts the serialized markup of a block and its inner blocks, and returns serialized markup of the wrapper block.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $serialized_block string | The serialized markup of a block and its inner blocks. Required |
Return Value
(string)
The serialized markup of the wrapper block.
Function Information
Since Version
6.7.0
Source File
wp-includes/blocks.php
Advertisement