Uname: Linux p3plzcpnl499967.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
Software: Apache
PHP version: 8.2.30 [ PHP INFO ] PHP os: Linux
Server Ip: 208.109.40.231
Your Ip: 216.73.216.26
User: nayff91c5tsx (10005085) | Group: nayff91c5tsx (10005085)
Safe Mode: OFF
Disable Function:
NONE

name : manager.php
<?php

namespace JET_ABAF\Compatibility;

defined( 'ABSPATH' ) || exit;

class Manager {

	public function __construct() {
		$this->load_compatibility_packages();
	}

	/**
	 * Load compatibility packages.
	 *
	 * Includes all available compatibility packages for provided plugins.
	 *
	 * @since  2.5.5
	 * @since  2.6.3 Added Polylang compatibility package.
	 * @since  3.1.0 Added JetEngine & Jet_Smart_Filters compatibility packages.
	 * @access public
	 *
	 * @return void
	 */
	public function load_compatibility_packages() {

		$packages_list = [
			'jet-engine/jet-engine.php' => [
				'cb'   => 'class_exists',
				'args' => 'Jet_Engine',
			],
			'jet-smart-filters.php'     => [
				'cb'   => 'class_exists',
				'args' => 'Jet_Smart_Filters',
			],
			'polylang.php'              => [
				'cb'   => 'class_exists',
				'args' => 'Polylang',
			],
			'wpml.php'                  => [
				'cb'   => 'defined',
				'args' => 'WPML_ST_VERSION',
			],
		];

		foreach ( $packages_list as $file => $condition ) {
			if ( true === call_user_func( $condition['cb'], $condition['args'] ) ) {
				require JET_ABAF_PATH . 'includes/compatibility/packages/' . $file;
			}
		}

	}

}
© 2026 GrazzMean