HEX
Server: Apache
System: Linux sxb1plmcpnl510113.prod.sxb1.secureserver.net 4.18.0-553.58.1.lve.el8.x86_64 #1 SMP Fri Jul 4 12:07:06 UTC 2025 x86_64
User: acnbijigo78q (10488831)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /home/acnbijigo78q/public_html/jetk.sa/wp-content/plugins/wpml-elasticpress/src/FeatureSupport.php
<?php

namespace WPML\ElasticPress;

use ElasticPress\Features;

use WPML\ElasticPress\Manager\Indices;

class FeatureSupport {

	const FEATURE_SLUG = '';

	/** @var Features */
	protected $features;

	/** @var Indices */
	protected $indicesManager;

	/** @var string */
	protected $currentLanguage = '';

	/**
	 * @param Features $features
	 * @param Indices  $indicesManager
	 * @param string   $currentLanguage
	 */
	public function __construct(
		Features $features,
		Indices  $indicesManager,
		$currentLanguage
	) {
		$this->features        = $features;
		$this->indicesManager  = $indicesManager;
		$this->currentLanguage = $currentLanguage;
	}

	/**
	 * @return bool
	 */
	protected function isFeatureActive() {
		$feature = $this->features->get_registered_feature( static::FEATURE_SLUG );

		if ( empty( $feature ) ) {
			return false;
		}

		/**
		 * Get whether the feature was already active, and the value of the
		 * setting that requires a reindex, if it exists.
		 */
		return $feature->is_active();
	}

}