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