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).


Top ↑

Parameters Parameters

$val

(bool) (Required) default value of the migration status.

$post_id

(int) (Required) WP_Post ID.


Top ↑

Return Return

(bool)


Top ↑

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;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.