PluginProbe
If-So Dynamic Content – Elementor & All Page Builders Personalization / trunk
If-So Dynamic Content – Elementor & All Page Builders Personalization vtrunk
1.10.1 1.10.0.1 1.10 1.9.9 1.9.2.2 1.9.3 1.9.3.1 1.9.3.2 1.9.4 1.9.4.1 1.9.5 1.9.5.1 1.9.6 1.9.7 1.9.8 trunk 0.1 1.0 1.0.1 1.0.2 1.0.3 1.0.5 1.0.6 1.0.7 1.0.8 All 100 releases
if-so / extensions / extension-base / extension-initializer-base.class.php

extension-initializer-base.class.php in If-So Dynamic Content – Elementor & All Page Builders Personalization trunk, at extensions/extension-base/extension-initializer-base.class.php

27 lines 803 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace IfSo\Addons\Base;
3 use YahnisElsts\PluginUpdateChecker\v5\PucFactory;
4
5 class ExtensionInitializer{
6 protected $extension_instance;
7
8 public function __construct($plugin_main,$update_settings){
9 $this->check_for_updates($update_settings);
10 }
11
12 private function check_for_updates($update_settings){
13 if(!empty($update_settings)){
14 require_once(__DIR__ . '/lib/plugin-update-checker/plugin-update-checker.php');
15 try{
16 $myUpdateChecker = PucFactory::buildUpdateChecker( //Check for updates
17 $update_settings->url,
18 $update_settings->main_file,
19 $update_settings->slug
20 );
21 }
22 catch(Exception $e){
23 }
24 }
25 }
26
27 }