HEX
Server: Apache
System: Linux p3plzcpnl476737.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: p8pyefaexf70 (9161224)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //proc/thread-self/cwd/wp-content/plugins/shopengine/modules/manifest.php
<?php

namespace ShopEngine\Modules;

defined('ABSPATH') || exit;

use ShopEngine\Core\Register\Module_List;

class Manifest
{
	public function init() {

		add_action('init', [$this, 'manifest_modules'], 0);
	}

	public function manifest_modules() {

		foreach(Module_List::instance()->get_list(true, 'active') as $module) {

			if($module['status'] != 'active') {
				continue;
			}
			if($module['package'] === 'pro-disabled') {
				continue;
			}

			if(isset($module['path'])) {

				$fl = $module['path'] . '/' . $module['slug'] . '.php';

				if(file_exists($fl)) {

					require_once $fl;
				}
			}

			$module['base_class']::instance()->init();

		}

 		if ( !wp_doing_ajax() && !empty($_SERVER['REQUEST_URI']) && strpos(sanitize_text_field(wp_unslash($_SERVER['REQUEST_URI'])), 'wp-json/') === false ) {
		    do_action('shopengine/module/comparison-module-pro-support');
 		}
	}
}