mirror of
https://github.com/proelements/proelements.git
synced 2026-04-06 04:13:48 +00:00
26 lines
738 B
PHP
26 lines
738 B
PHP
<?php
|
|
|
|
namespace ElementorPro\Modules\CustomCode\ImportExport;
|
|
|
|
use Elementor\App\Modules\ImportExport\Processes\Export;
|
|
use Elementor\App\Modules\ImportExport\Processes\Import;
|
|
use Elementor\App\Modules\ImportExport\Processes\Revert;
|
|
|
|
class Import_Export {
|
|
const FILE_NAME = 'custom-code';
|
|
|
|
public function register_hooks() {
|
|
add_action( 'elementor/import-export/export-kit', function ( Export $export ) {
|
|
$export->register( new Export_Runner() );
|
|
} );
|
|
|
|
add_action( 'elementor/import-export/import-kit', function ( Import $import ) {
|
|
$import->register( new Import_Runner() );
|
|
} );
|
|
|
|
add_action( 'elementor/import-export/revert-kit', function ( Revert $revert ) {
|
|
$revert->register( new Revert_Runner() );
|
|
} );
|
|
}
|
|
}
|