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/woocommerce-multilingual/classes/Options/WPML.php
<?php

namespace WCML\Options;

use WPML\Settings\PostType\Automatic;
use WPML\Setup\Option;

class WPML {

	/**
	 * @param string $postType
	 * @param bool   $state
	 */
	public static function setAutomatic( $postType, $state ) {
		if ( method_exists( Automatic::class, 'set' ) ) {
			Automatic::set( $postType, $state );
		}
	}

	/**
	 * @param string $postType
	 *
	 * @return bool
	 */
	public static function isAutomatic( $postType ) {
		if ( method_exists( Automatic::class, 'isAutomatic' ) ) {
			return Automatic::isAutomatic( $postType );
		}

		return false;
	}

	/**
	 * @return bool
	 */
	public static function useAte() {
		return method_exists( \WPML_TM_ATE_Status::class, 'is_enabled_and_activated' )
			&& \WPML_TM_ATE_Status::is_enabled_and_activated();
	}
}