-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.php
34 lines (27 loc) · 857 Bytes
/
run.php
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
<?php
namespace CodeSoup;
// If this file is called directly, abort.
defined('WPINC') || die;
// Autoload all classes via composer.
require "vendor/autoload.php";
/**
* Make main plugin class available via global function call.
*
* @since 1.0.0
*/
function plugin_instance() {
return \CodeSoup\InstapageCache\Init::get_instance();
}
// Init plugin
$plugin = plugin_instance();
$plugin->set_constants([
'MIN_WP_VERSION_SUPPORT_TERMS' => '6.0',
'MIN_WP_VERSION' => '6.0',
'MIN_PHP_VERSION' => '8.2',
'MIN_MYSQL_VERSION' => '',
'PLUGIN_PREFIX' => 'codesoup_ilc_',
'PLUGIN_NAME' => 'Instapage Local Cache',
'PLUGIN_VERSION' => '0.0.1',
'CACHE_BASE_DIR' => WP_CONTENT_DIR . '/instapage-cache',
]);
$plugin->init();