/** * Constructor * * @since 1.0.2 */ protected function __construct() { // Load the WPML API require_once PLL_MODULES_INC . '/wpml/wpml-legacy-api.php'; $this->api = new PLL_WPML_API(); self::$strings = get_option('polylang_wpml_strings', array()); add_action('pll_language_defined', array($this, 'define_constants')); add_action('pll_get_strings', array($this, 'get_strings')); }
/** * constructor * * @since 1.0.2 */ protected function __construct() { self::$strings = get_option('polylang_wpml_strings', array()); add_action('pll_get_strings', array(&$this, 'get_strings')); }