| 1 |
<?php |
| 2 |
namespace Elementor\Modules\KitElementsDefaults\ImportExport; |
| 3 |
|
| 4 |
use Elementor\App\Modules\ImportExport\Processes\Export; |
| 5 |
use Elementor\App\Modules\ImportExport\Processes\Import; |
| 6 |
use Elementor\Modules\KitElementsDefaults\ImportExport\Runners\Export as Export_Runner; |
| 7 |
use Elementor\Modules\KitElementsDefaults\ImportExport\Runners\Import as Import_Runner; |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; // Exit if accessed directly. |
| 11 |
} |
| 12 |
|
| 13 |
class Import_Export { |
| 14 |
const FILE_NAME = 'kit-elements-defaults'; |
| 15 |
|
| 16 |
public function register() { |
| 17 |
// Revert kit is working by default, using the site-settings runner. |
| 18 |
|
| 19 |
add_action( 'elementor/import-export/export-kit', function ( Export $export ) { |
| 20 |
$export->register( new Export_Runner() ); |
| 21 |
} ); |
| 22 |
|
| 23 |
add_action( 'elementor/import-export/import-kit', function ( Import $import ) { |
| 24 |
$import->register( new Import_Runner() ); |
| 25 |
} ); |
| 26 |
} |
| 27 |
} |
| 28 |
|