LLMS_Forms::maybe_load_preview( WP_Post|boolean $post )
Load form autosaves when previewing a form
Parameters Parameters
- $post
-
(WP_Post|boolean) (Required) WP_Post object for the llms_form post or
falseif no form found.
Return Return
(WP_Post|boolean)
Source Source
File: includes/forms/class-llms-forms.php
* @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 );
return $blocks;
}
/**
* Modifies a field for usage in the "free enrollment" checkout form
*
* If the block is not visible (according to LLMS block-level visibility settings)
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |