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/wp-content/plugins/wp-seo-multilingual/classes/YoastSEO/Loaders.php
<?php

namespace WPML\WPSEO\YoastSEO;

use WPML\FP\Logic;

class Loaders {

	/**
	 * @param string $wpSeoVersion
	 *
	 * @return array
	 */
	public static function get( $wpSeoVersion ) {
		$isSitemapHrefLangEnabled = ! defined( 'WPML_SEO_ENABLE_SITEMAP_HREFLANG' ) || constant( 'WPML_SEO_ENABLE_SITEMAP_HREFLANG' );
		$isSTEnabled              = defined( 'WPML_ST_VERSION' );
		$isWPSEONewsEnabled       = defined( 'WPSEO_NEWS_VERSION' );
		$isGTEVersion14           = version_compare( $wpSeoVersion, '14', '>=' );
		$isWPSEOPremium           = Utils::isPremium();

		return wpml_collect(
			[
				\WPML\WPSEO\Shared\Upgrade\Hooks::class => true,
				\WPML\WPSEO\Shared\Localization::class  => true,
				\WPML_WPSEO_Main_Factory::class         => true,
				PrimaryCategory\Hooks::class            => true,
				Terms\AdminHooks::class                 => true,
				Terms\Meta\Hooks::class                 => true,
				TranslationJob\Hooks::class             => true,
				Sitemap\Cache::class                    => true,
				Sitemap\AlternateLangHooks::class       => $isSitemapHrefLangEnabled,
				SlugTranslation\Hooks::class            => $isSTEnabled,
				Addons\WPSEONews\Sitemap\Hooks::class   => $isWPSEONewsEnabled,
				Presentation\Hooks::class               => $isGTEVersion14,
				Meta\SocialHooks::class                 => $isGTEVersion14,
				Indexable\Hooks::class                  => $isGTEVersion14,
				Redirects\Hooks::class                  => $isWPSEOPremium,
			]
		)->filter( Logic::isTruthy() )
			->keys()
			->toArray();
	}
}