[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
elementor-pro
/
modules
/
custom-code
/
import-export
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 export-runner.php
1,931 B
SET
[ EDIT ]
|
[ DEL ]
📄 import-export.php
738 B
SET
[ EDIT ]
|
[ DEL ]
📄 import-runner.php
3,965 B
SET
[ EDIT ]
|
[ DEL ]
📄 revert-runner.php
909 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: revert-runner.php
<?php namespace ElementorPro\Modules\CustomCode\ImportExport; use Elementor\App\Modules\ImportExport\Runners\Revert\Revert_Runner_Base; use ElementorPro\Modules\CustomCode\Module as Custom_Code_Module; if ( ! defined( 'ABSPATH' ) ) { exit; } class Revert_Runner extends Revert_Runner_Base { public static function get_name(): string { return 'custom-code'; } public function should_revert( array $data ): bool { return ( isset( $data['runners'] ) && array_key_exists( static::get_name(), $data['runners'] ) ); } public function revert( array $data ) { $metadata = $data['runners'][ static::get_name() ] ?? []; $this->revert_imported_snippets( $metadata ); } private function revert_imported_snippets( $metadata ) { $imported_snippets = $metadata['imported_snippets'] ?? []; foreach ( $imported_snippets as $snippet ) { wp_delete_post( $snippet['id'], true ); } } }