b0y-101 Mini Shell


Current Path : E:/www/tcas/wp-content/plugins/elementor/app/modules/import-export/runners/revert/
File Upload :
Current File : E:/www/tcas/wp-content/plugins/elementor/app/modules/import-export/runners/revert/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']
		);
	}
}

Copyright © 2019 by b0y-101