[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.135.207.193: ~ $
<?php

namespace Elementor\App\Modules\ImportExport;

use Elementor\App\Modules\ImportExport\Processes\Revert;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

class Usage {

	/**
	 * Register hooks.
	 *
	 * @return void
	 */
	public function register() {
		add_filter( 'elementor/tracker/send_tracking_data_params', function ( array $params ) {
			$params['usages']['import_export']['revert'] = $this->get_revert_usage_data();

			return $params;
		} );
	}

	/**
	 * Get the Revert usage data.
	 *
	 * @return array
	 */
	private function get_revert_usage_data() {
		$revert_sessions = ( new Revert() )->get_revert_sessions();

		$data = [];

		foreach ( $revert_sessions as $revert_session ) {
			$data[] = [
				'kit_name' => $revert_session['kit_name'],
				'source' => $revert_session['source'],
				'revert_timestamp' => (int) $revert_session['revert_timestamp'],
				'total_time' => ( (int) $revert_session['revert_timestamp'] - (int) $revert_session['import_timestamp'] ),
			];
		}

		return $data;
	}
}

Filemanager

Name Type Size Permission Actions
compatibility Folder 0755
processes Folder 0755
runners Folder 0755
module.php File 28.49 KB 0644
usage.php File 1.01 KB 0644
utils.php File 3.66 KB 0644
wp-cli.php File 7.93 KB 0644