# polylang/2.8.2/modules/wpml/load.php

Polylang, version 2.8.2. 26 lines.

- Page: https://pluginprobe.com/plugins/polylang/2.8.2/code/modules/wpml/load.php
- Raw: https://pluginprobe.com/plugins/polylang/2.8.2/raw/modules/wpml/load.php
- Modified: 2020-09-08T10:46:02+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/2.8.2/code/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->get_languages_list() ) {
	if ( ! defined( 'PLL_WPML_COMPAT' ) || PLL_WPML_COMPAT ) {
		PLL_WPML_Compat::instance(); // WPML API
		PLL_WPML_Config::instance(); // wpml-config.xml
	}

	add_filter(
		'pll_settings_modules',
		function( $modules ) {
			$modules[] = 'PLL_Settings_WPML';
			return $modules;
		}
	);
}

```
