LLMS_Blocks_Page_Builders::check_for_beaver( bool $val, int $post_id )
Add support for Beaver Builder.
Description Description
If the builder is enabled for the post LifterLMS should treat the post as not migrated (actions are not removed).
Parameters Parameters
- $val
-
(bool) (Required) default value of the migration status.
- $post_id
-
(int) (Required) WP_Post ID.
Return Return
(bool)
Source Source
File: libraries/lifterlms-blocks/includes/class-llms-blocks-page-builders.php
public static function check_for_beaver( $val, $post_id ) {
// If Beaver Builder is enabled for the post, don't remove actions.
if ( FLBuilderModel::is_builder_enabled( $post_id ) ) {
$val = false;
}
return $val;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 1.2.0 | Introduced. |