PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.1
Elementor Website Builder – more than just a page builder v4.3.1
4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 All 454 releases
elementor / modules / atomic-widgets / elements / promotions / preserves-children-subtree.php

preserves-children-subtree.php in Elementor Website Builder – more than just a page builder 4.3.1, at modules/atomic-widgets/elements/promotions/preserves-children-subtree.php

23 lines 408 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Elementor\Modules\AtomicWidgets\Elements\Promotions;
4
5 use Elementor\Plugin;
6
7 if ( ! defined( 'ABSPATH' ) ) {
8 exit;
9 }
10
11 trait Preserves_Children_Subtree {
12
13 protected function _get_default_child_type( array $element_data ) {
14 $document = Plugin::$instance->documents->get_current();
15
16 if ( $document && $document->is_saving() ) {
17 return new Preserved_Element();
18 }
19
20 return null;
21 }
22 }
23