HEX
Server: Apache
System: Linux beta.alfanet.ee 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: busines1 (1252)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home-ssd1/busines1/public_html/wp-content/plugins/woocommerce-multilingual/classes/COT/Hooks.php
<?php

namespace WCML\COT;

use WPML\LIB\WP\Hooks as WPHooks;
use Automattic\WooCommerce\Utilities\FeaturesUtil as FeaturesUtil;
use WCML\StandAlone\IStandAloneAction;

class Hooks implements \IWPML_Frontend_Action, \IWPML_Backend_Action, IStandAloneAction {

	const FEATURE = 'custom_order_tables';

	public function add_hooks() {
		WPHooks::onAction( 'before_woocommerce_init' )
			->then( function() {
				if ( class_exists( FeaturesUtil::class ) ) {
					FeaturesUtil::declare_compatibility( self::FEATURE, WCML_PLUGIN_PATH . '/wpml-woocommerce.php', true );
				}
			} );
	}

}