# polylang/2.3.6/modules/wpml/settings-wpml.php

Polylang, version 2.3.6. 36 lines.

- Page: https://pluginprobe.com/plugins/polylang/2.3.6/code/modules/wpml/settings-wpml.php
- Raw: https://pluginprobe.com/plugins/polylang/2.3.6/raw/modules/wpml/settings-wpml.php
- Modified: 2016-04-27T07:58:36+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.3.6/code/modules/wpml/settings-wpml.php#L10-L20`.

```php
<?php

/**
 * A class to inform about the WPML compatibility module in Polylang settings
 *
 * @since 1.8
 */
class PLL_Settings_WPML extends PLL_Settings_Module {

	/**
	 * constructor
	 *
	 * @since 1.8
	 *
	 * @param object $polylang polylang object
	 */
	public function __construct( &$polylang ) {
		parent::__construct( $polylang, array(
			'module'      => 'wpml',
			'title'       => __( 'WPML Compatibility', 'polylang' ),
			'description' => __( 'WPML compatibility mode of Polylang', 'polylang' ),
		) );
	}

	/**
	 * tells if the module is active
	 *
	 * @since 1.8
	 *
	 * @return bool
	 */
	public function is_active() {
		return ! defined( 'PLL_WPML_COMPAT' ) || PLL_WPML_COMPAT;
	}
}

```
