HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: /var/www/indoadvisory/wp/wp-content/plugins/polylang-wc/plugins/shipment-tracking.php
<?php
/**
 * @package Polylang-WC
 */

/**
 * Manages the compatibility with WooCommerce Shipment Tracking.
 * Version tested: 1.6.10.
 *
 * @since 0.6
 */
class PLLWC_Shipment_Tracking {

	/**
	 * Constructor.
	 *
	 * @since 0.6
	 */
	public function __construct() {
		if ( version_compare( $GLOBALS['wp_version'], '6.7-beta' ) < 0 ) {
			// Backward compatibility with WP < 6.7.
			add_action( 'change_locale', array( $this, 'change_locale' ) );
		}
	}

	/**
	 * Reloads the Shipment Tracking translations in emails.
	 * Hooked to the action 'change_locale'.
	 *
	 * @since 1.0
	 *
	 * @return void
	 */
	public function change_locale() {
		if ( method_exists( WC_Shipment_Tracking_Actions::get_instance(), 'load_plugin_textdomain' ) ) {
			WC_Shipment_Tracking_Actions::get_instance()->load_plugin_textdomain();
		}
	}
}