-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwarmu.php
36 lines (30 loc) · 836 Bytes
/
warmu.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
35
36
<?php
/*
* Plugin Name: Warmu
* Plugin URI: https://github.com/Inggo/Warmu
* Description: WordPress Admin interface using React and Material-UI
* Author: Inggo Espinosa
* Author URI: https://inggo.xyz/
* Version: 0.1.0
* License: GPLv2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
// Define constants
// Plugin Path
if (!defined('WPAR_PLUGIN_DIR')) {
define('WPAR_PLUGIN_DIR', plugin_dir_path(__FILE__));
}
// Plugin URL
if (!defined('WPAR_PLUGIN_URL')) {
define('WPAR_PLUGIN_URL', plugin_dir_url(__FILE__));
}
// Plugin Root
if (!defined('WPAR_PLUGIN_FILE')) {
define('WPAR_PLUGIN_FILE', __FILE__);
}
// Load dependencies
if (!class_exists('Inggo\WPAR\Loader')) {
include_once(WPAR_PLUGIN_DIR . 'classes/Loader.php');
}
// Initialize plugin
new Inggo\WPAR\Loader(WPAR_PLUGIN_DIR);