| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\Variables\ImportExportCustomization; |
| 4 |
|
| 5 |
use Elementor\App\Modules\ImportExportCustomization\Processes\Export; |
| 6 |
use Elementor\App\Modules\ImportExportCustomization\Processes\Import; |
| 7 |
use Elementor\Modules\Variables\ImportExportCustomization\Runners\Export as Export_Runner; |
| 8 |
use Elementor\Modules\Variables\ImportExportCustomization\Runners\Import as Import_Runner; |
| 9 |
|
| 10 |
if ( ! defined( 'ABSPATH' ) ) { |
| 11 |
exit; |
| 12 |
} |
| 13 |
|
| 14 |
class Import_Export_Customization { |
| 15 |
const FILE_NAME = 'global-variables'; |
| 16 |
|
| 17 |
public function register_hooks() { |
| 18 |
add_action( 'elementor/import-export-customization/export-kit', function ( Export $export ) { |
| 19 |
$export->register( new Export_Runner() ); |
| 20 |
} ); |
| 21 |
|
| 22 |
add_action( 'elementor/import-export-customization/import-kit', function ( Import $import ) { |
| 23 |
$import->register( new Import_Runner() ); |
| 24 |
} ); |
| 25 |
} |
| 26 |
} |
| 27 |
|