-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlive-demo-sandbox.php
34 lines (31 loc) · 1018 Bytes
/
live-demo-sandbox.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
/**
* Plugin Name: Sandbox
* Plugin URI: https://solidie.com/live-demo-sandbox/
* Description: Live demo sandbox instance creator utilizing WordPress multisite setup
* Version: 1.0.1
* Author: Solidie
* Author URI: https://solidie.com
* Requires at least: 5.3
* Tested up to: 6.6.1
* Requires PHP: 7.4
* License: GPLv3
* License URI: https://opensource.org/licenses/GPL-3.0
* Text Domain: live-demo-sandbox
*
* @package live-demo-sandbox
*/
if ( ! defined( 'ABSPATH' ) ) { exit;
}
// Load autoloader
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/classes/Main.php';
( new Solidie_Sandbox\Main() )->init(
(object) array(
'file' => __FILE__,
'mode' => 'development',
'root_menu_slug' => 'live-demo-sandbox',
'db_prefix' => 'slds_',
'current_url' => ( is_ssl() ? 'https' : 'http' ) . '://' . sanitize_text_field( wp_unslash( $_SERVER['HTTP_HOST'] ?? '' ) ) . sanitize_text_field( wp_unslash( $_SERVER['REQUEST_URI'] ?? '' ) ),
)
);