LLMS_Blocks_Page_Builders::check_for_elementor( 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_elementor( $val, $post_id ) {
// If Elementor builder is enabled for the post, don't remove actions.
if ( 'builder' === get_post_meta( $post_id, '_elementor_edit_mode', true ) ) {
$val = false;
}
return $val;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 1.2.0 | Introduced. |