コード例 #1
0
ファイル: wpml-compat.php プロジェクト: JoryHogeveen/polylang
 /**
  * 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'));
 }
コード例 #2
0
ファイル: wpml-compat.php プロジェクト: spielhoelle/amnesty
 /**
  * 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'));
 }