# elementor/4.3.2/modules/atomic-widgets/elements/promotions/preserves-children-subtree.php

Elementor Website Builder – more than just a page builder, version 4.3.2. 23 lines.

- Page: https://pluginprobe.com/plugins/elementor/4.3.2/code/modules/atomic-widgets/elements/promotions/preserves-children-subtree.php
- Raw: https://pluginprobe.com/plugins/elementor/4.3.2/raw/modules/atomic-widgets/elements/promotions/preserves-children-subtree.php
- Modified: 2026-07-14T13:45:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elementor/4.3.2/code/modules/atomic-widgets/elements/promotions/preserves-children-subtree.php#L10-L20`.

```php
<?php

namespace Elementor\Modules\AtomicWidgets\Elements\Promotions;

use Elementor\Plugin;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

trait Preserves_Children_Subtree {

	protected function _get_default_child_type( array $element_data ) {
		$document = Plugin::$instance->documents->get_current();

		if ( $document && $document->is_saving() ) {
			return new Preserved_Element();
		}

		return null;
	}
}

```
