Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Forms::load_reusable_blocks( array[] $blocks )
Loads reusable blocks into a block list
Description Description
By default, a reusable block contains a reference to the block post (which will be loaded during rendering). This is problematic for us since we want to review then entire block list so we can see all fields for validation purposes and so on.
This function will replace each reusable block with the parsed blocks from it’s reference post.
Parameters Parameters
- $blocks
-
(Required) List of WP_Block arrays.
Return Return
(array[])
Source Source
File: includes/forms/class-llms-forms.php
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |