mirror of
https://github.com/proelements/proelements.git
synced 2026-04-06 04:13:48 +00:00
v3.33.1
This commit is contained in:
25
modules/custom-code/import-export/import-export.php
Normal file
25
modules/custom-code/import-export/import-export.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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() );
|
||||
} );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user