コード例 #1
0
    function __construct() {
        // This singleton needs to be instantiated before we call parent constructor, so we avoid instantiating
        // the parent class WPV_WPML_Integration_Embedded instead.
        WPV_WPML_Integration::init();

        parent::__construct();
    }
コード例 #2
0
ファイル: wpv-wpml.php プロジェクト: rebeccayshen/kitlist
 public static function get_instance() {
     if( null == self::$instance ) {
         self::$instance = new WPV_WPML_Integration();
     }
     return self::$instance;
 }