PluginProbe
Polylang / 2.3.6
Polylang v2.3.6
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
polylang / modules / wpml / settings-wpml.php

settings-wpml.php in Polylang 2.3.6, at modules/wpml/settings-wpml.php

36 lines 700 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * A class to inform about the WPML compatibility module in Polylang settings
5 *
6 * @since 1.8
7 */
8 class PLL_Settings_WPML extends PLL_Settings_Module {
9
10 /**
11 * constructor
12 *
13 * @since 1.8
14 *
15 * @param object $polylang polylang object
16 */
17 public function __construct( &$polylang ) {
18 parent::__construct( $polylang, array(
19 'module' => 'wpml',
20 'title' => __( 'WPML Compatibility', 'polylang' ),
21 'description' => __( 'WPML compatibility mode of Polylang', 'polylang' ),
22 ) );
23 }
24
25 /**
26 * tells if the module is active
27 *
28 * @since 1.8
29 *
30 * @return bool
31 */
32 public function is_active() {
33 return ! defined( 'PLL_WPML_COMPAT' ) || PLL_WPML_COMPAT;
34 }
35 }
36