-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
35 lines (27 loc) · 863 Bytes
/
index.php
File metadata and controls
35 lines (27 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
namespace tangible;
use tangible\updater;
if ( ! class_exists( 'tangible\\updater' ) ) {
class updater {
static $instance;
}
}
( require __DIR__ . '/module-loader.php' )(new class() extends \StdClass {
public $name = 'tangible_plugin_updater';
public $version = '20250915'; // Automatically updated with npm run version
public $server_url = 'https://updater.tangible.one';
public $update_checkers = [];
public $license_key_setting_field = 'license_key';
public $license_status_setting_field = 'status_key';
function load() {
updater::$instance = $this;
$this->url = plugins_url( '/', __FILE__ );
require_once __DIR__ . '/includes/index.php';
}
function register_plugin( $plugin ) {
updater\register_plugin( $plugin );
}
function register_theme( $theme ) {
updater\register_plugin( $theme );
}
});