File Editor
Directories:
.. (Back)
Files:
elementor-content.php
plugins.php
revert-runner-base.php
site-settings.php
taxonomies.php
templates.php
wp-content.php
Create New File
Create
Edit File: site-settings.php
<?php namespace Elementor\App\Modules\ImportExport\Runners\Revert; use Elementor\Plugin; class Site_Settings extends Revert_Runner_Base { public static function get_name() : string { return 'site-settings'; } public function should_revert( array $data ) : bool { return ( isset( $data['runners'] ) && array_key_exists( static::get_name(), $data['runners'] ) ); } public function revert( array $data ) { Plugin::$instance->kits_manager->revert( $data['runners'][ static::get_name() ]['imported_kit_id'], $data['runners'][ static::get_name() ]['active_kit_id'], $data['runners'][ static::get_name() ]['previous_kit_id'] ); } }
Save Changes
Rename File
Rename