LLMS_Forms::parse_blocks( string $content )
Parse the post_content of a form into a list of WP_Block arrays.
Description Description
This method parses the blocks, loads block data from any reusable blocks, and cascades visibility attributes onto a block’s innerBlocks.
Parameters Parameters
- $content
-
(string) (Required) Post content HTML.
Return Return
(array[]) Array of parsed block arrays.
Source Source
File: includes/forms/class-llms-forms.php
1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 | * @param string $content Post content HTML. * @ return array [] Array of parsed block arrays. */ public function parse_blocks( $content ) { $blocks = parse_blocks( $content ); $blocks = $this ->load_reusable_blocks( $blocks ); $blocks = $this ->cascade_visibility_attrs( $blocks ); |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |