HEX
Server: Apache
System: Linux webd006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/zwafgyp/lacalita/wp-content/plugins/rey-core/inc/libs/importer/tasks/init.php
<?php
namespace ReyCore\Libs\Importer\Tasks;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

use ReyCore\Libs\Importer\Base;
use ReyCore\Libs\Importer\Helper;

class Init extends TaskBase
{
	public function get_id(){
		return 'init';
	}

	public function get_status(){
		return esc_html__('Initializing...', 'rey-core');
	}

	public function run(){

		if( ! ($config = get_transient('rey_demo_config')) ){
			return $this->add_error( 'Cannot retrieve configuration.' );
		}

		if( isset($config['reset']) && 1 === absint($config['reset']) ){
			$this->importer->reset_data();
		}

		Base::reset_map();

		if( ! reycore__get_purchase_code() ){
			return $this->add_error('Purchase code missing');
		}

		// Suspend bunches of stuff in WP core
		wp_suspend_cache_invalidation( true );

	}

}