LLMS_Abstract_User_Engagement::merge_content( string $content = null, bool $load_reusable_blocks = false )
Allow child classes to merge the post content based on content from the template.
Parameters Parameters
- $content
-
(string) (Optional) y use the given content instead of
$this->content
.Default value: null
- $load_reusable_blocks
-
(bool) (Optional) y replace reusable blocks with their actual blocks.
Default value: false
Return Return
(string)
Source Source
File: includes/abstracts/llms-abstract-user-engagement.php
public function merge_content( $content = null, $load_reusable_blocks = false ) { if ( is_null( $content ) ) { $content = $this->get( 'content', true ); } if ( $load_reusable_blocks ) { $blocks = parse_blocks( $content ); $blocks = LLMS_Forms::instance()->load_reusable_blocks( $blocks ); $content = serialize_blocks( $blocks ); } return $content; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.4.0 | Added optional $content and $load_reusable_blocks parameters. |
6.0.0 | Introduced. |