# polylang/3.8.6/src/modules/wpml/load.php

Polylang, version 3.8.6. 18 lines.

- Page: https://pluginprobe.com/plugins/polylang/3.8.6/code/src/modules/wpml/load.php
- Raw: https://pluginprobe.com/plugins/polylang/3.8.6/raw/src/modules/wpml/load.php
- Modified: 2026-02-23T14:05:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/polylang/3.8.6/code/src/modules/wpml/load.php#L10-L20`.

```php
<?php
/**
 * Loads the WPML compatibility mode.
 *
 * @package Polylang
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Don't access directly.
}

if ( $polylang->model->has_languages() ) {
	if ( ! defined( 'PLL_WPML_COMPAT' ) || PLL_WPML_COMPAT ) {
		PLL_WPML_Compat::instance(); // WPML API.
		PLL_WPML_Config::instance(); // wpml-config.xml.
	}
}

```
