# hello-plus/1.2.0/modules/template-parts/components/import-export.php

Hello Plus, version 1.2.0. 40 lines.

- Page: https://pluginprobe.com/plugins/hello-plus/1.2.0/code/modules/template-parts/components/import-export.php
- Raw: https://pluginprobe.com/plugins/hello-plus/1.2.0/raw/modules/template-parts/components/import-export.php
- Modified: 2024-12-05T13:37:06+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/hello-plus/1.2.0/code/modules/template-parts/components/import-export.php#L10-L20`.

```php
<?php
namespace HelloPlus\Modules\TemplateParts\Components;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

use Elementor\App\Modules\ImportExport\Processes\Import as Elementor_Import;
use Elementor\App\Modules\ImportExport\Processes\Export as Elementor_Export;
use Elementor\App\Modules\ImportExport\Processes\Revert as Elementor_Revert;

use HelloPlus\Includes\Utils;
use HelloPlus\Modules\TemplateParts\Classes\Runners\Import as Ehp_Import;
use HelloPlus\Modules\TemplateParts\Classes\Runners\Export as Ehp_Export;
use HelloPlus\Modules\TemplateParts\Classes\Runners\Revert as Ehp_Revert;

class Import_Export {
	public function register_import_runners( Elementor_Import $import ) {
		$import->register( new Ehp_Import() );
	}

	public function register_export_runners( Elementor_Export $export ) {
		$export->register( new Ehp_Export() );
	}

	public function register_revert_runners( Elementor_Revert $revert ) {
		$revert->register( new Ehp_Revert() );
	}

	public function __construct() {
		if ( Utils::has_pro() ) {
			return;
		}

		add_action( 'elementor/import-export/import-kit', [ $this, 'register_import_runners' ] );
		add_action( 'elementor/import-export/export-kit', [ $this, 'register_export_runners' ] );
		add_action( 'elementor/import-export/revert-kit', [ $this, 'register_revert_runners' ] );
	}
}

```
